Status XQueryBestStipple(display, which_screen, width, height, width_return, height_return)
Display *display;
Drawable which_screen;
unsigned int width, height;
unsigned int *width_return, *height_return;
display | Specifies the connection to the X server. |
which_screen | Specifies any drawable on the screen. |
width height | Specify the width and height. |
width_return height_return | Return the width and height of the object best supported by the display hardware. |
XQueryBestStipple() can generate BadDrawable and BadMatch errors.
BadDrawable | A value for a Drawable argument does not name a defined Window or Pixmap. |
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. |