XClearArea(display, w, x, y, width, height, exposures)
Display *display;
Window w;
int x, y;
unsigned int width, height;
Bool exposures;
display | Specifies the connection to the X server. |
w | Specifies the window. and specify the upper-left corner of the rectangle |
x y | Specify the x and y coordinates, which are relative to the origin of the window. |
width height | Specify the width and height, which are the dimensions of the rectangle. |
exposures | Specifies a Boolean value that indicates if Expose events are to be generated. |
XClearArea() can generate BadMatch , BadValue , and BadWindow errors.
BadMatch | An InputOnly window is used as a Drawable. |
BadMatch | Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. |
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. |
BadWindow | A value for a Window argument does not name a defined Window. |