1
XIQUERYPOINTER(libmansuffix)
2
============================
7
XIQueryPointer - get device pointer coordinates.
12
#include <X11/extensions/XInput2.h>
14
Bool XIQueryPointer( Display *display,
19
double *root_x_return,
20
double *root_y_return,
23
XIButtonState *buttons_return,
24
XIModifierState *modifiers_return,
25
XIGroupState *group_return);
28
Returns the current button state.
31
Returns the child window that the pointer is located in,
35
Specifies the device to query.
38
Specifies the connection to the X server.
41
Returns the current group state.
44
Returns the current state of the modifier keys.
47
Returns the root window that the pointer is in.
49
root_x_return, root_y_return
50
Return the pointer coordinates relative to the root
56
win_x_return, win_y_return
57
Return the pointer coordinates relative to the specified
63
The XIQueryPointer function returns the root window the
64
device's pointer is logically on and the pointer coordinates
65
relative to the root window's origin. If XIQueryPointer returns
66
False, the pointer is not on the same screen as the specified
67
window, and XIQueryPointer returns None to child_return and
68
zero to win_x_return and win_y_return. If XIQueryPointer
69
returns True, the pointer coordinates returned to win_x_return
70
and win_y_return are relative to the origin of the specified
71
window. In this case, XIQueryPointer returns the child that
72
contains the pointer, if any, or else None to child_return.
74
XIQueryPointer returns the current logical state of the buttons
75
buttons_return. The keyboard paired with the master pointer is
76
selected to obtain the data for modifiers_return and
79
XIQueryPointer is identical to XQueryPointer but specifies the
82
XIQueryPointer can generate a BadDevice and a BadWindow error.
88
An invalid device was specified. The device does not
89
exist or is not a pointer device.
92
A value for a Window argument does not name a defined
98
XQueryPointer(libmansuffix)