Next: , Previous: , Up: Cursors   [Contents][Index]


11.2 Cursor Functions

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

Function: query-best-cursor width height display
display

A display object.

width
height

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.

Function: recolor-cursor cursor foreground background
cursor

A cursor object.

foreground

A color object specifying the new foreground color.

background

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.