Manual Pages for Linux CentOS command on man xcb_query_pointer
MyWebUniversity

Manual Pages for Linux CentOS command on man xcb_query_pointer

xcbquerypointer(3) XCB Requests xcbquerypointer(3)

NAME

xcbquerypointer - get pointer coordinates SYNOPSIS

#include Request function xcbquerypointercookiet xcbquerypointer(xcbconnectiont *conn, xcbwindowt window); Reply datastructure typedef struct xcbquerypointerreplyt { uint8t responsetype; uint8t samescreen; uint16t sequence; uint32t length; xcbwindowt root; xcbwindowt child; int16t rootx; int16t rooty; int16t winx; int16t winy; uint16t mask; uint8t pad0[2]; } xcbquerypointerreplyt; Reply function xcbquerypointerreplyt *xcbquerypointerreply(xcbconnectiont *conn, xcbquerypointercookiet cookie, xcbgenericerrort **e); REQUEST ARGUMENTS conn The XCB connection to X11. window A window to check if the pointer is on the same screen as window (see the samescreen field in the reply). REPLY FIELDS responsetype The type of this reply, in this case XCBQUERYPOINTER. This field is also present in the xcbgenericreplyt and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). samescreen If samescreen is False, then the pointer is not on the same screen as the argument window, child is None, and winx and winy are zero. If samescreen is True, then winx and winy are the pointer coordinates relative to the argument window's origin, and child is the child containing the pointer, if any. root The root window the pointer is logically on. child The child window containing the pointer, if any, if samescreen is true. If samescreen is false, XCBNONE is re‐ turned. rootx The pointer X position, relative to root. rooty The pointer Y position, relative to root. winx The pointer X coordinate, relative to child, if samescreen is true. Zero otherwise. winy The pointer Y coordinate, relative to child, if samescreen is true. Zero otherwise. mask The current logical state of the modifier keys and the but‐ tons. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen. DESCRIPTION Gets the root window the pointer is logically on and the pointer coor‐ dinates relative to the root window's origin. RETURN VALUE Returns an xcbquerypointercookiet. Errors have to be handled when calling the reply function xcbquerypointerreply. If you want to handle errors in the event loop instead, use

xcbquerypointerunchecked. See xcb-requests(3) for details. ERRORS xcbwindowerrort The specified window does not exist. SEE ALSO

xcb-requests(3) AUTHOR Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐ rections and improvements. X Version 11 libxcb 1.13 xcbquerypointer(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™