clear-area clears an area or an entire window to the background. Since pixmaps do not have backgrounds, they cannot be filled by using the functions described in the following paragraphs. Instead, you should use draw-rectangle, which sets the pixmap to a known value. See paragraph 6.5, Drawing Rectangles, for information on draw-rectangle .
clear-area | window &key ( :x 0) (:y 0) :width :height :exposures-p | Function |
Draws a rectangular area in the specified window with the background pixel or pixmap of the window. The :x and :y coordinates are relative to the window origin, and specify the upper-left corner of the rectangular area that is to be cleared. A nil or zero value for :height or :width clears the remaining area (height - y or width - x). If the window has a defined background tile, the rectangle is tiled by using a plane-mask of all ones and a function of :copy. If the window has background :none, the contents of the window are not changed. In either case, if :exposures-p is non- nil, then one or more :exposure events are generated for regions of the rectangle that are either visible or are being retained in a backing store. To clear the entire area in a specified window, use ( clear-area window). |
copy-area | source gcontext source-x source-y width height destination destination-x destination-y | Function |
Copies the specified rectangular area from the source drawable to the specified rectangular area of the destination drawable, combining them as specified in the supplied graphics context (gcontext). The x and y coordinates are relative to their respective drawable origin, with each pair specifying the upper left corner of the area. If either regions of the source area are obscured and have not been retained in backing store, or regions outside the boundaries of the source drawable are specified, those regions are not copied. Instead, the following occurs on all corresponding destination regions that are either visible or are retained in backing store:
|
copy-plane | source gcontext plane source-x source-y width height destination destination-x destination-y | Function |
Uses a single bit plane of the specified rectangular area of the source drawable along with the specified graphics context ( gcontext) to modify the specified rectangle area of the destination drawable. The drawables specified by the source and destination arguments must have the same root but need not have the same depth. Effectively, this operation forms a pixmap of the same depth as destination and with a size specified by the source area. It then uses the foreground and background from the graphics context (foreground where the bit-plane in source contains a one bit, background where the bit-plane in source contains a zero bit), and the equivalent of a copy-area operation is performed with all the same exposure semantics. This can also be thought of as using the specified region of the source bit-plane as a stipple with a fillstyle of :opaque-stippled for filling a rectangular area of the destination. |