2 .\" Title: xiquerypointer
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 "XIQUERYPOINTER" "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 XIQueryPointer \- get device pointer coordinates\&.
35 #include <X11/extensions/XInput2\&.h>
39 Bool XIQueryPointer( Display *display,
44 double *root_x_return,
45 double *root_y_return,
48 XIButtonState *buttons_return,
49 XIModifierState *modifiers_return,
50 XIGroupState *group_return);
55 Returns the current button state\&.
60 Returns the child window that the pointer is located in,
66 Specifies the device to query\&.
71 Specifies the connection to the X server\&.
76 Returns the current group state\&.
81 Returns the current state of the modifier keys\&.
86 Returns the root window that the pointer is in\&.
90 root_x_return, root_y_return
91 Return the pointer coordinates relative to the root
92 window\*(Aqs origin\&.
97 Specifies the window\&.
101 win_x_return, win_y_return
102 Return the pointer coordinates relative to the specified
111 The XIQueryPointer function returns the root window the
112 device\*(Aqs pointer is logically on and the pointer coordinates
113 relative to the root window\*(Aqs origin\&. If XIQueryPointer returns
114 False, the pointer is not on the same screen as the specified
115 window, and XIQueryPointer returns None to child_return and
116 zero to win_x_return and win_y_return\&. If XIQueryPointer
117 returns True, the pointer coordinates returned to win_x_return
118 and win_y_return are relative to the origin of the specified
119 window\&. In this case, XIQueryPointer returns the child that
120 contains the pointer, if any, or else None to child_return\&.
130 XIQueryPointer returns the current logical state of the buttons
131 buttons_return\&. The keyboard paired with the master pointer is
132 selected to obtain the data for modifiers_return and
143 The mask field in buttons_return is dynamically allocated and
144 must be freed by the caller\&.
154 XIQueryPointer is identical to XQueryPointer but specifies the
165 XIQueryPointer can generate a BadDevice and a BadWindow error\&.
177 An invalid device was specified\&. The device does not
178 exist or is not a pointer device\&.
189 A value for a Window argument does not name a defined
201 XQueryPointer(libmansuffix)