XtGrabKey
NAMESYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO
NAME
XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer − manage grabs
SYNTAX
void XtGrabKey(Widget widget, KeyCode keycode, Modifiers modifiers, Boolean owner_events, int pointer_mode, int keyboard_mode); | |
void XtUngrabKey(Widget widget, KeyCode keycode, Modifiers modifiers); | |
int XtGrabKeyboard(Widget widget, Boolean owner_events, int pointer_mode, int keyboard_mode, Time time); | |
void XtUngrabKeyboard(Widget widget, Time time); | |
void XtGrabButton(Widget widget, int button, Modifiers modifiers, Boolean owner_events, unsigned int event_mask, int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor); | |
void XtUngrabButton(Widget widget, KeyCode button, Modifiers modifiers); | |
int XtGrabPointer(Widget widget, Boolean owner_events, unsigned int event_mask, int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor, Time time); | |
void XtUngrabPointer(Widget widget, Time time); |
ARGUMENTS
widget |
Specifies the widget in whose window the grab will occur. Must be of class Core or a subclass thereof. | ||
keycode |
|||
modifiers |
owner_events
pointer_mode
keyboard_mode
time |
||
button |
confine_to
cursor |
Specifies arguments to the associated Xlib function call. |
DESCRIPTION
XtGrabKey calls XGrabKey specifying the widget’s window as the grab window if the widget is realized. The remaining arguments are exactly as for XGrabKey. If the widget is not realized, or is later unrealized, the call to XGrabKey will be performed (again) when the widget is realized and its window becomes mapped. In the future, if XtDispatchEvent is called with a KeyPress event matching the specified keycode and modifiers (which may be AnyKey or AnyModifier, respectively) for the widget’s window, the Intrinsics will call XtUngrabKeyboard with the timestamp from the KeyPress event if either of the following conditions is true:
• |
There is a modal cascade and the widget is not in the active subset of the cascade and the keyboard was not previously grabbed, or | ||
• |
XFilterEvent returns True. |
XtUngrabKey calls XUngrabKey specifying the widget’s window as the ungrab window if the widget is realized. The remaining arguments are exactly as for XUngrabKey. If the widget is not realized, XtUngrabKey removes a deferred XtGrabKey request, if any, for the specified widget, keycode, and modifiers.
If the specified widget is realized XtGrabKeyboard calls XGrabKeyboard specifying the widget’s window as the grab window. The remaining arguments and return value are exactly as for XGrabKeyboard. If the widget is not realized, XtGrabKeyboard immediately returns GrabNotViewable. No future ungrab is implied by XtGrabKeyboard.
XtUngrabKeyboard calls XUngrabKeyboard with the specified time.
XtGrabButton calls XGrabButton specifying the widget’s window as the grab window if the widget is realized. The remaining arguments are exactly as for XGrabButton. If the widget is not realized, or is later unrealized, the call to XGrabButton will be performed (again) when the widget is realized and its window becomes mapped. In the future, if XtDispatchEvent is called with a ButtonPress event matching the specified button and modifiers (which may be AnyButton or AnyModifier, respectively) for the widget’s window, the Intrinsics will call XtUngrabPointer with the timestamp from the ButtonPress event if either of the following conditions is true:
• |
There is a modal cascade and the widget is not in the active subset of the cascade and the pointer was not previously grabbed, or | ||
• |
XFilterEvent returns True. |
XtUngrabButton calls XUngrabButton specifying the widget’s window as the ungrab window if the widget is realized. The remaining arguments are exactly as for XUngrabButton. If the widget is not realized, XtUngrabButton removes a deferred XtGrabButton request, if any, for the specified widget, button, and modifiers.
XtGrabPointer calls XGrabPointer specifying the widget’s window as the grab window. The remaining arguments and return value are exactly as for XGrabPointer. If the widget is not realized, XtGrabPointer immediately returns GrabNotViewable. No future ungrab is implied by XtGrabPointer.
XtUngrabPointer calls XUngrabPointer with the specified time.
SEE ALSO
X Toolkit
Intrinsics − C Language Interface
Xlib − C Language X Interface
More Linux Commands
manpages/tack.1.html
tack(1) - terminfo action checker - Linux manual page.......
The tack program has three purposes: 411toppm(1) to help you build a new terminfo entry describing an unknown terminal, 411toppm(1) to test the correctness of a
manpages/fread.3.html
fread(3) - binary stream input/output - Linux manual page...
The function fread() reads nmemb elements of data, each size bytes long, from the stream pointed to by stream, storing them at the location given by ptr. The fu
manpages/FcFreeTypeCharSet.3.html
FcFreeTypeCharSet(3) - compute unicode coverage (Man Page)
FcFreeTypeCharSet.3 - Scans a FreeType face and returns the set of encoded Unicode chars. This scans several encoding tables to build as complete a list as poss
manpages/pam_setcred.3.html
pam_setcred(3) - establish / delete user credentials........
The pam_setcred function is used to establish, maintain and delete the credentials of a user. It should be called to set the credentials after a user has been a
manpages/Net::LDAP::Extra.3pm.html
Net::LDAP::Extra(3pm) - Load extra Net::LDAP methods........
Net::LDAP::Extra allows extra methods to be added to Net::LDAP. Normally such methods would be added by sub-classing Net::LDAP, but this proves to get messy as
manpages/Tcl_FreeParse.3.html
Tcl_FreeParse(3) - parse Tcl scripts and expressions........
These procedures parse Tcl commands or portions of Tcl commands such as expressions or references to variables. Each procedure takes a pointer to a script (or p
manpages/XDGAKeyEventToXKeyEvent.3.html
XDGAKeyEventToXKeyEvent(3) - Client library for the XFree86-
The XFree86-DGA extension is an X server extension for allowing client programs direct access to the video frame buffer. This is a brief description of the prog
manpages/nop.1.html
nop(1) - pretty-print graph file (Commands - Linux man page)
nop reads a stream of graphs and prints each in pretty-printed (canonical) format on stdout. If no files are given, it reads from stdin. OPTIONS The following o
manpages/html2textrc.5.html
html2textrc(5) formatting properties file for html2text(1)
The html2textrc(5) file defines a set of formatting properties used by the html2text(1) utility, that overrides the programs built-in formatting defaults. Each
manpages/journalctl.1.html
journalctl(1) Query the systemd journal - Linux manual page
journalctl may be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8). If called without parameters, it will show the
manpages/ldap_str2matchingrule.3.html
ldap_str2matchingrule(3) - Schema definition handling routin
These routines are used to parse schema definitions in the syntax defined in RFC 4512 into structs and handle these structs. These routines handle four kinds of
manpages/XtGetConstraintResourceList.3.html
XtGetConstraintResourceList(3) - obtain resource list.......
If XtGetResourceList is called before the widget class is initialized (that is, before the first widget of that class has been created), XtGetResourceList retur
