XQueryBestTile

Syntax

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;

Arguments

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.

Description

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.

Diagnostics

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, [email protected]