xpointer(x) Xlib Interface xpointer(x)
NAME
xpointer - query pointer position
DESCRIPTION
The xpointer class provides an object interface the the
XQueryPointer() function of Xlib. Users can get the
pointer's current position in the root window's coordinate
space, or in the coordinate space of a particular window.
SUPERCLASS
object
INSTANCE VARIABLES
display
is the display whose pointer is to be queries. The
default is "xdisplay".
window
is the name of an xwindow object that should be
used as the basis for pointer queries.
MESSAGES
query! queries the pointer and updates the object's state.
This involves an X server round-trip, so you probably don't want to send this message until you
really want the pointer information.
win_x?, win_y?
returns the pointer x,y position relative to the
window instance variable.
root_x?, root_y?
returns the pointer x,y position relative to the
root window.
keys_buttons?
returns the current state of the modifier keys and
pointer buttons.
keys_buttons?
returns the current state of the modifier keys and
pointer buttons.
root_id?
returns the window id of the root window containing
the pointer.
child_id?
If the pointer is in a child of the window instance
variable, its id is available through this message.
EXAMPLE
See the manual page for the motif_drawing_area class for
an example of the use of the xpointer class.
SEE ALSO
xwindow, motif_drawing_area
Last Updated On: Fri Mar 10 15:38:48 1995
Please send comments and suggestions to
its-documentation@rpi.edu
Keyword Search of RPInfo Consulting Pages and NewsCache