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/menu_cursor.3menu.html
menu_cursor(3menu) - position a menu's cursor (Man Page)....
menu_cursor.3menu - The function pos_menu_cursor restores the cursor to the current position associated with the menus selected item. This is useful after curse
manpages/gnutls_transport_set_ptr2.3.html
gnutls_transport_set_ptr2(3) - API function - Linux man page
gnutls_transport_set_ptr2.3 - Used to set the first argument of the transport function (for push and pull callbacks). In berkeley style sockets this function wi
manpages/podofotxt2pdf.1.html
podofotxt2pdf(1) convert plain text files into PDF files....
podofotxt2pdf is one of the command line tools from the PoDoFo library that provide several useful operations to work with PDF files. It can convert a plain tex
manpages/XPending.3.html
XPending(3) - handle output buffer or event queue (ManPage)
The XFlush function flushes the output buffer. Most client applications need not use this function because the output buffer is automatically flushed as needed
manpages/putwc.3.html
putwc(3) - write a wide character to a FILE stream (ManPage)
putwc.3 - The fputwc() function is the wide-character equivalent of the fputc(3) function. It writes the wide character wc to stream. If ferror(stream) becomes
manpages/qcatool2.1.html
qcatool2(1) - command line tool for the Qt Cryptographic Arc
qcatool is a command line tool for performing various cryptographic operations with the Qt Cryptographic Architecture (QCA). qcatool can also be used for testin
manpages/pfbtopfa.1.html
pfbtopfa(1) - Convert Postscript .pfb fonts to .pfa format u
This script invokes gs(1) to convert a .pfb file into a .pfa file. SEE ALSO gs(1) VERSION This document was last revised for Ghostscript version 9.15. AUTHOR Ar
manpages/XtDisplayInitialize.3.html
XtDisplayInitialize(3) - initialize, open, or close a displa
The XtDisplayInitialize function builds the resource database, calls the Xlib XrmParseCommand function to parse the command line, and performs other per display
manpages/Mail::SpamAssassin::Plugin::Rule2XSBody.3pm.html
Mail::SpamAssassin::Plugin::Rule2XSBody(3pm) - speed up Spam
This plugin will use native-code object files representing the ruleset, in order to provide significant speedups in rule evaluation. Note that sa-compile must b
manpages/ntfsundelete.8.html
ntfsundelete(8) - recover a deleted file from an NTFS volume
ntfsundelete has three modes of operation: scan, undelete and copy. Scan The default mode, scan simply reads an NTFS Volume and looks for files that have been d
manpages/CPAN::FirstTime.3pm.html
CPAN::FirstTime(3pm) - Utility for CPAN::Config file Initial
The init routine asks a few questions and writes a CPAN/Config.pm or CPAN/MyConfig.pm file (depending on what it is currently using). In the following all quest
manpages/monodis.1.html
monodis(1) - CIL image content dumper and disassembler......
The monodis program is used to dump the contents an ECMA/ISO CIL image (contained in .EXE files that contain extended PE/COFF CIL code). To roundtrip assemblies
