Next Prev Up

10.3 Cursor Functions

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


query-best-cursor width height display Function
     
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.

recolor-cursor cursor foreground background Function
     
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.


Next Prev Up
© 1988, 1989 Texas Instruments Incorporated
Conversion to HTML made by Gilbert Baumann.
Last build: Tue Dec 16 23:30:42 1997