XQueryBestStipple

Syntax

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;

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 XQueryBestStipple() function returns the best or closest size, that is, the size that can be stippled 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.

XQueryBestStipple() 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(), XQueryBestTile(), XQueryBestSize(), XSetArcMode(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetLineAttributes(), XSetState(), XSetTile(), "Setting the Fill Tile and Stipple".
Christophe Tronche, ch@tronche.com