Information about a CgDrawable (window or pixmap) can be obtained by sending the getGeometry: message to the drawable. In the following example a pixmap is created and its geometry is requested. Return parameters are provided for the root window of the drawable, x, y, width, height, border width and depth information. The root window of a pixmap is the same as that for the window that was used to create the pixmap.There are also convenience methods, width, height, and depth, for querying the geometry of drawables.
|