1XRecolorCursor(3) XLIB FUNCTIONS XRecolorCursor(3)
2
3
4
6 XRecolorCursor, XFreeCursor, XQueryBestCursor - manipulate cursors
7
9 int XRecolorCursor(Display *display, Cursor cursor, XColor *fore‐
10 ground_color, XColor *background_color);
11
12 int XFreeCursor(Display *display, Cursor cursor);
13
14 Status XQueryBestCursor(Display *display, Drawable d, unsigned int
15 width, unsigned int height, unsigned int *width_return, unsigned
16 int *height_return);
17
19 background_color
20 Specifies the RGB values for the background of the source.
21
22 cursor Specifies the cursor.
23
24 d Specifies the drawable, which indicates the screen.
25
26 display Specifies the connection to the X server.
27
28 foreground_color
29 Specifies the RGB values for the foreground of the source.
30
31 width
32 height Specify the width and heightof the cursor that you want the
33 size information for.
34
35 width_return
36 height_return
37 Return the best width and height that is closest to the spec‐
38 ified width and height.
39
41 The XRecolorCursor function changes the color of the specified cursor,
42 and if the cursor is being displayed on a screen, the change is visible
43 immediately. The pixel members of the XColor structures are ignored;
44 only the RGB values are used.
45
46 XRecolorCursor can generate a BadCursor error.
47
48 The XFreeCursor function deletes the association between the cursor
49 resource ID and the specified cursor. The cursor storage is freed when
50 no other resource references it. The specified cursor ID should not be
51 referred to again.
52
53 XFreeCursor can generate a BadCursor error.
54
55 Some displays allow larger cursors than other displays. The
56 XQueryBestCursor function provides a way to find out what size cursors
57 are actually possible on the display. It returns the largest size that
58 can be displayed. Applications should be prepared to use smaller cur‐
59 sors on displays that cannot support large ones.
60
61 XQueryBestCursor can generate a BadDrawable error.
62
64 BadCursor A value for a Cursor argument does not name a defined Cursor.
65
66 BadDrawable
67 A value for a Drawable argument does not name a defined Win‐
68 dow or Pixmap.
69
71 XCreateColormap(3), XCreateFontCursor(3), XDefineCursor(3)
72 Xlib - C Language X Interface
73
74
75
76X Version 11 libX11 1.3.4 XRecolorCursor(3)