1 XIDEFINECURSOR(libmansuffix)
2 ============================
7 XIDefineCursor, XIUndefineCursor - define device cursors.
12 #include <X11/extensions/XInput2.h>
14 int XIDefineCursor( Display *display,
19 int XIUndefineCursor( Display *display,
24 Specifies the cursor that is to be displayed or None.
27 Specifies the device whose cursor is to change.
30 Specifies the connection to the X server.
38 If a cursor is set, it will be used when the device's pointer
39 is in the window. If the cursor is None, it is equivalent to
42 The deviceid must be a master pointer device or a BadDevice error is
45 XIDefineCursor can generate BadDevice, BadCursor and BadWindow.
47 The XIUndefineCursor function undoes the effect of a previous
48 XIDefineCursor for this window. When the pointer is in the
49 window, the window's default cursor will now be used. If no
50 default cursor is defined, the parent's cursor for this device
51 will be used (if defined) or the parent's default cursor will
54 XIDefineCursor and XIUndefineCursor are identical to
55 XDefineCursor and XUndefineCursor but specify the device
58 XIUndefineCursor can generate a BadDevice and a BadWindow
65 A value for a cursor argument does not name a defined
69 An invalid device was specified. The device does not
70 exist or is not a pointer device.
73 A value for a Window argument does not name a defined
78 XDefineCursor, XUndefineCursor