XClearArea, XClearWindow - clear area or window
2. SYNTAX ▲
int XClearArea(Display *display, Window w, int x, int y, unsigned width, unsigned height, Bool exposures); int XClearWindow(Display *display, Window w);
3. ARGUMENTS ▲
display 1i Specifies the connection to the X server.
exposures 1i Specifies a Boolean value that indicates if .ZN Expose events are to be generated.
w 1i Specifies the window.
height 1i Specify the width and height\*(Wh.
y 1i Specify the x and y coordinates\*(Xy.
4. DESCRIPTION ▲
The .ZN XClearArea function paints a rectangular area in the specified window according to the specified dimensions with the window's background pixel or pixmap. The subwindow-mode effectively is .ZN ClipByChildren . If width is zero, it is replaced with the current width of the window minus x. If height is zero, it is replaced with the current height of the window minus y. If the window has a defined background tile, the rectangle clipped by any children is filled with this tile. If the window has background .ZN None , the contents of the window are not changed. In either case, if exposures is .ZN True , one or more .ZN Expose events are generated for regions of the rectangle that are either visible or are being retained in a backing store. If you specify a window whose class is .ZN InputOnly , a .ZN BadMatch error results.
.ZN XClearArea can generate .ZN BadMatch , .ZN BadValue , and .ZN BadWindow errors.
The .ZN XClearWindow function clears the entire area in the specified window and is equivalent to .ZN XClearArea (display, w, 0, 0, 0, 0, .ZN False ). If the window has a defined background tile, the rectangle is tiled with a plane-mask of all ones and .ZN GXcopy function. If the window has background .ZN None , the contents of the window are not changed. If you specify a window whose class is .ZN InputOnly , a .ZN BadMatch error results.
.ZN XClearWindow can generate .ZN BadMatch and .ZN BadWindow errors.
5. DIAGNOSTICS ▲
- .ZN BadMatch
An .ZN InputOnly window is used as a Drawable.
- .ZN BadValue
Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.
- .ZN BadWindow
A value for a Window argument does not name a defined Window.
6. SEE ALSO ▲