1XDefineCursor(3) XLIB FUNCTIONS XDefineCursor(3)
2
3
4
6 XDefineCursor, XUndefineCursor - define cursors
7
9 int XDefineCursor(Display *display, Window w, Cursor cursor);
10
11 int XUndefineCursor(Display *display, Window w);
12
14 cursor Specifies the cursor that is to be displayed or None.
15
16 display Specifies the connection to the X server.
17
18 w Specifies the window.
19
21 If a cursor is set, it will be used when the pointer is in the window.
22 If the cursor is None, it is equivalent to XUndefineCursor.
23
24 XDefineCursor can generate BadCursor and BadWindow errors.
25
26 The XUndefineCursor function undoes the effect of a previous XDe‐
27 fineCursor for this window. When the pointer is in the window, the
28 parent's cursor will now be used. On the root window, the default cur‐
29 sor is restored.
30
31 XUndefineCursor can generate a BadWindow error.
32
34 BadAlloc The server failed to allocate the requested resource or
35 server memory.
36
37 BadCursor A value for a Cursor argument does not name a defined Cursor.
38
39 BadWindow A value for a Window argument does not name a defined Window.
40
42 XCreateFontCursor(3), XRecolorCursor(3)
43 Xlib - C Language X Interface
44
45
46
47X Version 11 libX11 1.7.2 XDefineCursor(3)