Status XQueryBestTile(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.
Specify the width and height.
Return the width and height of the object best supported by the display hardware.


The .PN XQueryBestTile function returns the best or closest size, that is, the size that can be tiled fastest on the screen specified by which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable, a BadMatch error results.

XQueryBestTile() 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.

See also

XCreateGC(), XQueryBestSize(), XQueryBestStipple(), XSetArcMode(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetLineAttributes(), XSetState(), XSetTile(), "Setting the Fill Tile and Stipple".
Christophe Tronche, ch@tronche.com