10.3 Cursor Functions

The following paragraphs describe the CLX functions used to operate on cursor objects.

query-best-cursor width height display Function
A display object.
The requested cursor size.

Returns the cursor size closest to the requested width and height that is best suited to the display. The width and height returned define the largest cursor size supported by the X server. Clients should always be prepared to limit cursor sizes to those supported by the server.

width, height
Type card16.

recolor-cursor cursor foreground background Function
A cursor object.
A color object specifying the new foreground color.
A color object specifying the new background color.

Changes the color of the specified cursor. If the cursor is displayed on a screen, the change is visible immediately.