XQueryBestCursor()XQueryBestCursor()NameXQueryBestCursor – get the closest supported cursor sizes.
Synopsis
Status XQueryBestCursor(display, d, width, height,
width_return, height_return)
Display *display;
Drawable d;
unsigned int width, height;
unsigned int *width_return, *height_return;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
d Specifies a drawable that indicates which screen the
cursor is to be used on. The best cursor may be differ‐
ent on different screens.
width Specify the preferred width and height, in pixels.
height
width_return Returns the closest supported cursor dimensions, in pix‐
height_return els, on the display hardware.
Returns
Zero on failure, non-zero on success.
DescriptionXQueryBestCursor() returns the closest cursor dimensions actually sup‐
ported by the display hardware to the dimensions you specify.
Call this function if you wish to use a cursor size other than 16 by
16. XQueryBestCursor() provides a way to find out what size cursors
are actually possible on the display. Applications should be prepared
to use smaller cursors on displays which cannot support large ones.
XQueryBestCursor() returns non-zero if the call succeeded in getting a
supported size (which may be the same or different from the specified
size), or zero if the call failed.
Errors
BadDrawable
See AlsoXCreateFontCursor(), XCreateGlyphCursor(), XCreatePixmapCursor(), XDe‐
fineCursor(), XFreeCursor(), XQueryBestSize(), XRecolorCursor(), XUnde‐
fineCursor().
Xlib - Cursors XQueryBestCursor()