XClearWindow() XClearWindow()
Name
XClearWindow - clear an entire window.
Synopsis
XClearWindow(display, w)
Display *display;
Window w;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
w Specifies the ID of the window to be cleared.
Description
XClearWindow() clears a window, but does not cause exposure events. This function is equivalent to XClearArea(display, w, 0, 0, 0, 0,
False).
If the window has a defined background tile or it is ParentRelative, the rectangle is tiled with a plane_mask of all 1's and function of
GXcopy. If the window has background None, the contents of the window are not changed.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text.
Errors
BadMatch If w is an InputOnly class window.
BadWindow
See Also
XClearArea(), XCopyArea(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDrawPoint(), XDraw-
Points(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangle(), XFillRectan-
gles().
Xlib - Drawing Primitives XClearWindow()