Debian Codegraph @

man/XIWarpPointer.man

raw
1 '\" t
2 .\" Title: xiwarppointer
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: 09/05/2024
6 .\" Manual: \ \&
7 .\" Source: \ \&
8 .\" Language: English
9 .\"
10 .TH "XIWARPPOINTER" "libmansuffix" "09/05/2024" "\ \&" "\ \&"
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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 XIWarpPointer \- move a device\*(Aqs pointer\&.
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <X11/extensions/XInput2\&.h>
36 .fi
37 .sp
38 .nf
39 Bool XIWarpPointer( Display *display,
40 int deviceid,
41 Window src_w,
42 Window dest_w,
43 double src_x,
44 double src_y,
45 int src_width,
46 int src_height,
47 double dest_x,
48 double dest_y);
49 .fi
50 .sp
51 .nf
52 dest_w
53 Specifies the destination window or None\&.
54 .fi
55 .sp
56 .nf
57 dest_x, dest_y
58 Specify the x and y coordinates within the destination
59 window\&.
60 .fi
61 .sp
62 .nf
63 deviceid
64 Specifies the master pointer device or floating slave
65 device to move\&.
66 .fi
67 .sp
68 .nf
69 display
70 Specifies the connection to the X server\&.
71 .fi
72 .sp
73 .nf
74 src_x, src_y, src_width, src_height
75 Specify a rectangle in the source window\&.
76 .fi
77 .sp
78 .nf
79 src_w
80 Specifies the source window or None\&.
81 .fi
82 .SH "DESCRIPTION"
83 .sp
84 .if n \{\
85 .RS 4
86 .\}
87 .nf
88 If dest_w is None, XIWarpPointer moves the pointer by the
89 offsets (dest_x, dest_y) relative to the current position of
90 the pointer\&. If dest_w is a window, XIWarpPointer moves the
91 pointer to the offsets (dest_x, dest_y) relative to the origin
92 of dest_w\&. However, if src_w is a window, the move only takes
93 place if the window src_w contains the pointer and if the
94 specified rectangle of src_w contains the pointer\&.
95 .fi
96 .if n \{\
97 .RE
98 .\}
99 .sp
100 .if n \{\
101 .RS 4
102 .\}
103 .nf
104 The src_x and src_y coordinates are relative to the origin of
105 src_w\&. If src_height is zero, it is replaced with the current
106 height of src_w minus src_y\&. If src_width is zero, it is
107 replaced with the current width of src_w minus src_x\&.
108 .fi
109 .if n \{\
110 .RE
111 .\}
112 .sp
113 .if n \{\
114 .RS 4
115 .\}
116 .nf
117 There is seldom any reason for calling this function\&. The
118 pointer should normally be left to the user\&. If you do use this
119 function, however, it generates events just as if the user had
120 instantaneously moved the pointer from one position to another\&.
121 Note that you cannot use XIWarpPointer to move the pointer
122 outside the confine_to window of an active pointer grab\&. An
123 attempt to do so will only move the pointer as far as the
124 closest edge of the confine_to window\&.
125 .fi
126 .if n \{\
127 .RE
128 .\}
129 .sp
130 .if n \{\
131 .RS 4
132 .\}
133 .nf
134 XIWarpPointer is identical to XWarpPointer but specifies the
135 device explicitly\&.
136 .fi
137 .if n \{\
138 .RE
139 .\}
140 .sp
141 .if n \{\
142 .RS 4
143 .\}
144 .nf
145 XIWarpPointer can generate a BadDevice and a BadWindow error\&.
146 .fi
147 .if n \{\
148 .RE
149 .\}
150 .SH "DIAGNOSTICS"
151 .sp
152 .if n \{\
153 .RS 4
154 .\}
155 .nf
156 BadDevice
157 An invalid device was specified\&. The device does not
158 exist or is not a pointer device\&.
159 .fi
160 .if n \{\
161 .RE
162 .\}
163 .sp
164 .if n \{\
165 .RS 4
166 .\}
167 .nf
168 BadWindow
169 A value for a Window argument does not name a defined
170 window\&.
171 .fi
172 .if n \{\
173 .RE
174 .\}
175 .SH "SEE ALSO"
176 .sp
177 .if n \{\
178 .RS 4
179 .\}
180 .nf
181 XWarpPointer(libmansuffix)
182 .fi
183 .if n \{\
184 .RE
185 .\}