XQueryBestStipple()XQueryBestStipple()Name
XQueryBestStipple – obtain the fastest supported stipple shape.
Synopsis
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 a connection to an X server; returned from
XOpenDisplay().
which_screen Specifies a drawable that tells the server which screen
you want the best size for.
width Specify the preferred width and height in pixels.
height
width_return Return the width and height, in pixels, of the stipple
height_return best supported by the display hardware.
Returns
Zero on failure, non-zero on success.
DescriptionXQueryBestStipple() returns the closest stipple size that can be stip‐
pled fastest. The drawable indicates the screen and possibly the vis‐
ual class and depth. An InputOnly window cannot be used as the draw‐
able (else a BadMatch error occurs).
XQueryBestStipple() returns non-zero if the call succeeded in getting a
supported size (may be the same or different from the specified size),
or zero if the call failed.
For more information on stipples, see Volume One, Chapter 5, The Graph‐
ics Context.
Errors
BadDrawable
BadMatch InputOnly window.
See AlsoXCreateBitmapFromData(), XCreatePixmap(), XCreatePixmapFromBitmap‐
Data(), XFreePixmap(), XQueryBestSize(), XQueryBestTile(), XReadBitmap‐
File(), XSetTile(), XSetWindowBackgroundPixmap(), XSetWindowBorder‐
Pixmap(), XWriteBitmapFile().
Xlib - Pixmaps and Tiles XQueryBestStipple()