1XIDEFINECURSOR(3)                                            XIDEFINECURSOR(3)
2
3
4

NAME

6       XIDefineCursor, XIUndefineCursor - define device cursors.
7

SYNOPSIS

9       #include <X11/extensions/XInput2.h>
10
11       int XIDefineCursor( Display *display,
12                           int deviceid,
13                           Window win,
14                           Cursor cursor);
15
16       int XIUndefineCursor( Display *display,
17                             int deviceid,
18                             Window win);
19
20       cursor
21              Specifies the cursor that is to be displayed or None.
22
23       deviceid
24              Specifies the device whose cursor is to change.
25
26       display
27              Specifies the connection to the X server.
28
29       win
30              Specifies the window.
31

DESCRIPTION

33           If a cursor is set, it will be used when the device's pointer
34           is in the window. If the cursor is None, it is equivalent to
35           XIUndefineCursor.
36
37           The deviceid must be a master pointer device or a BadDevice error is
38           returned.
39
40           XIDefineCursor can generate BadDevice, BadCursor and BadWindow.
41
42           The XIUndefineCursor function undoes the effect of a previous
43           XIDefineCursor for this window. When the pointer is in the
44           window, the window's default cursor will now be used. If no
45           default cursor is defined, the parent's cursor for this device
46           will be used (if defined) or the parent's default cursor will
47           be used.
48
49           XIDefineCursor and XIUndefineCursor are identical to
50           XDefineCursor and XUndefineCursor but specify the device
51           explicitly.
52
53           XIUndefineCursor can generate a BadDevice and a BadWindow
54           error.
55

DIAGNOSTICS

57           BadCursor
58                  A value for a cursor argument does not name a defined
59                  cursor.
60
61           BadDevice
62                  An invalid device was specified. The device does not
63                  exist or is not a pointer device.
64
65           BadWindow
66                  A value for a Window argument does not name a defined
67                  window.
68
69       See also
70
71           XDefineCursor, XUndefineCursor
72
73
74
75                                  06/19/2019                 XIDEFINECURSOR(3)
Impressum