Scroll to navigation

XtGrabKey(3Xt) XT FUNCTIONS XtGrabKey(3Xt)

̾??

XtGrabKey, XtUngrabKey, XtGrabKeyboard, XtUngrabKeyboard, XtGrabButton, XtUngrabButton, XtGrabPointer, XtUngrabPointer - ?????֤?????????

????

void XtGrabKey(widget, keycode, modifiers, owner_events, pointer_mode, keyboard_mode)
Widget widget;
KeyCode keycode;
Modifiers modifiers;
Boolean owner_events;
int pointer_mode;
int keyboard_mode;

void XtUngrabKey(widget, keycode, modifiers)
Widget widget;
KeyCode keycode;
Modifiers modifiers;

int XtGrabKeyboard(widget, owner_events, pointer_mode, keyboard_mode, time)
Widget widget;
Boolean owner_events;
int pointer_mode;
int keyboard_mode;
Time time;

void XtUngrabKeyboard(widget, time)
Widget widget;
Time time;

void XtGrabButton(widget, button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor)
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, button, modifiers)
Widget widget;
KeyCode button;
Modifiers modifiers;

int XtGrabPointer(widget, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, time)
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, time)
Widget widget;
Time time;

??????

?????֤??????륦?????ɥ??????ĥ????????åȤ????ꤹ?롣 Core ???饹?????Υ??֥??饹?Ǥʤ????Фʤ??ʤ???









?б????? Xlib ?ؿ??θƤӽФ????Ϥ????????????ꤹ?롣

????

XtGrabKey ?ϡ??????????åȤ??ꥢ?饤???????Ƥ????ʤ??С????Υ????????åȤΥ????? ?ɥ??򥰥??֥??????ɥ??˻??ꤷ?? XGrabKey ???ƤӽФ????Ĥ??ΰ??????ˤĤ??Ƥϡ? XGrabKey ??????Ʊ???Ǥ??롣 ?????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢?ޤ??ϸ??ǥꥢ?饤?????????? ?????硢(?Ƥ?)?????????åȤ??ꥢ?饤?????졢???Υ??????ɥ????ޥåפ??? ???Ȥ??? XGrabKey ???ƤӽФ????롣???? ???ꤷ???????????ɤȥ??ǥ??ե??????˥ޥå?????(?????????ɤ? AnyKey ,???ǥ??ե??????? AnyModifier ?Ǥ??ɤ?) KeyPress ???Ȥä? XtDispatchEvent ???ƤӽФ??줿???硢?ʲ??ξ????Τ????줫??????Ω?Ĥʤ??С??????ȥ????? ?????? KeyPress ???٥??Ȥ????????????ॹ?????פ??Ȥä? XtUngrabKeyboard ???ƤӽФ?:

  • ?⡼???륫???????ɤ????ꡢ?????????åȤ??????????ɤΥ????ƥ??֤ʥ??֥??? ?ȤǤϤʤ????????ܡ??ɤ??????˥????֤????Ƥ??ʤ???
  • XFilterEvent ?? True ???֤?????

XtUngrabKey ?ϡ????ꤷ???????????åȤ??ꥢ?饤???????Ƥ????С????Υ??????ɥ??򥰥? ?ֲ??????????ɥ??˻??ꤷ?? XUngrabKey ???ƤӽФ????Ĥ??ΰ??????ˤĤ??Ƥϡ? XUngrabKey ??????Ʊ???Ǥ??롣 ?????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢 ???ꤵ?줿?????????åȡ??????????ɡ????ǥ??ե????????Ф??? ??α?????Ƥ??? XtGrabKey ?ꥯ?????Ȥ??????С? XtUngrabKey ?Ϥ????????????롣

???ꤷ???????????åȤ??ꥢ?饤???????Ƥ????С? XtGrabKeyboard ?Ϥ??Υ????????åȤΥ??????ɥ??򥰥??֥??????ɥ??˻??ꤷ?? XGrabKeyboard ???ƤӽФ????Ĥ??ΰ????????֤??ͤˤĤ??Ƥ? XGrabKeyboard ??????Ʊ???Ǥ??롣 ???Υ????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢 XtGrabKeyboard ??¨?¤? GrabNotViewable ???֤??? XtGrabKeyboard ?Ͼ????Υ????ֲ????????ꤷ?ʤ???

XtUngrabKeyboard ?ϡ????ꤷ?????????Ȥä? XUngrabKeyboard ???ƤӽФ???

XtGrabButton ?ϡ????ꤷ?????????ɥ????ꥢ?饤???????Ƥ????С????Υ??????ɥ??򥰥??? ???????ɥ??˻??ꤷ?? XGrabButton ???ƤӽФ????Ĥ??ΰ??????ˤĤ??Ƥ? XGrabButton ??????Ʊ???Ǥ??롣 ?????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢?ޤ??ϸ??ǥꥢ?饤?????????? ?????硢(?Ƥ?)?????????åȤ??ꥢ?饤?????졢???Υ??????ɥ????ޥåפ??? ???Ȥ??? XGrabButton ???ƤӽФ????롣???? ???ꤷ???ܥ????ȥ??ǥ??ե??????˥ޥå?????(?ܥ????? AnyButton ,???ǥ??ե??????? AnyModifier ?Ǥ??ɤ?) ButtonPress ???Ȥä? XtDispatchEvent ???ƤӽФ??줿???硢?ʲ??ξ????Τ????줫??????Ω?Ĥʤ??С??????ȥ????? ?????? KeyPress ???٥??Ȥ????????????ॹ?????פ??Ȥä? XtUngrabPointer ???ƤӽФ?:

  • ?⡼???륫???????ɤ????ꡢ?????????åȤ??????????ɤΥ????ƥ??֤ʥ??֥??? ?ȤǤϤʤ????ݥ??󥿤??????˥????֤????Ƥ??ʤ???
  • XFilterEvent ?? True ???֤?????

XtUngrabButton ?ϡ????ꤷ???????????åȤ??ꥢ?饤???????Ƥ????С????Υ??????ɥ??򥰥? ?ֲ??????????ɥ??˻??ꤷ?? XUngrabButton ???ƤӽФ????Ĥ??ΰ??????ˤĤ??Ƥϡ? XUngrabButton ??????Ʊ???Ǥ??롣 ?????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢 ???ꤵ?줿?????????åȡ??ܥ??󡢥??ǥ??ե????????Ф??? ??α?????Ƥ??? XtGrabButton ?ꥯ?????Ȥ??????С? XtUngrabButton ?Ϥ????????????롣

???ꤷ???????????åȤ??ꥢ?饤???????Ƥ????С? XtGrabPointer ?Ϥ??Υ????????åȤΥ??????ɥ??򥰥??֥??????ɥ??˻??ꤷ?? XGrabPointer ???ƤӽФ????Ĥ??ΰ????????֤??ͤˤĤ??Ƥ? XGrabKeyboard ??????Ʊ???Ǥ??롣 ???Υ????????åȤ??ꥢ?饤???????Ƥ??ʤ????硢 XtGrabPointer ??¨?¤? GrabNotViewable ???֤??? XtGrabPointer ?Ͼ????Υ????ֲ????????ꤷ?ʤ???

XtUngrabPointer ?ϡ????ꤷ?????????Ȥä? XUngrabPointer ???ƤӽФ???

??Ϣ????

X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

Release 6.5 X Version 11