2 .\" Title: xidefinecursor
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XIDEFINECURSOR" "libmansuffix" "09/23/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XIDefineCursor, XIUndefineCursor \- define device cursors\&.
35 #include <X11/extensions/XInput2\&.h>
39 int XIDefineCursor( Display *display,
46 int XIUndefineCursor( Display *display,
53 Specifies the cursor that is to be displayed or None\&.
58 Specifies the device whose cursor is to change\&.
63 Specifies the connection to the X server\&.
68 Specifies the window\&.
76 If a cursor is set, it will be used when the device\*(Aqs pointer
77 is in the window\&. If the cursor is None, it is equivalent to
88 The deviceid must be a master pointer device or a BadDevice error is
99 XIDefineCursor can generate BadDevice, BadCursor and BadWindow\&.
109 The XIUndefineCursor function undoes the effect of a previous
110 XIDefineCursor for this window\&. When the pointer is in the
111 window, the window\*(Aqs default cursor will now be used\&. If no
112 default cursor is defined, the parent\*(Aqs cursor for this device
113 will be used (if defined) or the parent\*(Aqs default cursor will
124 XIDefineCursor and XIUndefineCursor are identical to
125 XDefineCursor and XUndefineCursor but specify the device
136 XIUndefineCursor can generate a BadDevice and a BadWindow
149 A value for a cursor argument does not name a defined
161 An invalid device was specified\&. The device does not
162 exist or is not a pointer device\&.
173 A value for a Window argument does not name a defined
186 XDefineCursor, XUndefineCursor