Scroll to navigation

XGrabKey(3X11) XLIB FUNCTIONS XGrabKey(3X11)

̾??


XGrabKey, XUngrabKey - ?????ܡ??ɤΥ????򥰥??֤???

????

XGrabKey(display, keycode, modifiers, grab_window, owner_events, pointer_mode,
keyboard_mode)
Display *display;
int keycode;
unsigned int modifiers;
Window grab_window;
Bool owner_events;
int pointer_mode, keyboard_mode;

XUngrabKey(display, keycode, modifiers, grab_window)
Display *display;
int keycode;
unsigned int modifiers;
Window grab_window;

??????

X ?????Фؤ???³?????ꤹ?롣
?????֥??????ɥ??????ꤹ?롣
?????ܡ??ɥ??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ???????Ǥ??롣
KeyCode ???뤤?? AnyKey ?????ꤹ?롣
?????ޥ????ν??礫 AnyModifier ?????ꤹ?롣 ???Υޥ????????????????ޥ????Υӥå??ͤΥӥåȤ??Ȥ??????¤????ä????? ?Ǥ??롣
?????ܡ??ɥ??٥??Ȥ??̾??̤????𤹤뤫?ɤ????򼨤??????ͤ????ꤹ?롣
?ݥ??󥿥??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ???Ϥ??롣

????

?ؿ? XGrabKey ?ϥ????ܡ??ɤΥѥå??֤ʥ????֤???Ω???롣 ?????˰ʲ??ξ??郎???ƿ??ˤʤä????硢?????ܡ??ɤϥ????ƥ??֤˥????֤???( XGrabKeyboard ?ˤ??ä?)???ǽ??????ܡ??ɥ????ֻ????˥??????????줿???郎???åȤ???( KeyPress ???٥??Ȥ??????????褦??)?? KeyPress ???٥??Ȥ????𤵤??롣

  • ???ꤵ?줿???ǥ??ե???????????????Ū?˲??????Ƥ??ꡢ¾?ΤɤΥ??ǥ??ե? ??????????????Ū?ˤϲ??????Ƥ??ʤ??????????ܡ??ɤ??????֤????Ƥ??餺?? ???ꤷ??????(???켫?Τϥ??ǥ??ե??????????Ǥ??ɤ?)??????Ū?˲??????Ƥ? ?롣
  • grab_window ???ե??????????????ɥ??????襦?????ɥ?(???뤤?ϥե??????? ???????ɥ?)?Ǥ??뤫??grab_window ???ե??????????????ɥ??λ?¹???????? ???Ǥ??ꡢ???ĥݥ??󥿤??ޤ??Ǥ??롣
  • Ʊ?????????Ȥ߹??碌?Υѥå??֤ʥ????֤??? grab_window ?Τɤ????襦???? ?ɥ??ˤ?¸?ߤ??ʤ???

?Ĥ??ΰ??????β????? XGrabKeyboard ??Ʊ???Ǥ??롣 ?????ܡ??ɤ?????Ū???֤ǡ????ꤷ????????Υ???줿???֤ˤʤä??????????ƥ? ?֤ʥ????֤ϼ?ưŪ?˽?λ????(???ǥ??ե???????????????Ū???֤Ȥ???Ω)??

?ǥХ????Υ??٥??Ƚ????????뤵???Ƥ????????ǥХ?????????????(???饤?? ???ȥ??ץꥱ???????󤬸???)??ʪ?????֤Ȥ????Ƥ??ޤ????Ȥ????롣

?????? modifiers ?? AnyModifier ?Ǥ????????ϡ???ǽ?ʥ??ǥ??ե????????Ȥ߹??碌???Ƥ??Ф??ƥꥯ?????Ȥ? ȯ?Ԥ??뤳?Ȥ??????Ǥ???(???ǥ??ե???????̵???Ȥ߹??碌???ޤ?)?? ???ꤵ?줿???ƤΥ??ǥ??ե??????????? KeyCode ?????????Ƥ????Ƥ???ɬ?? ?Ϥʤ??? ?????? keycode ?? AnyKey ?Ǥ????????ϡ???ǽ?????ƤΥ????????ɤ??Ф??ƥꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ? ?????Ǥ??롣 ?????ʳ??ξ????ϡ????ꤷ???????????ɤ???³?Υ??åȥ??å׻??? min_keycode ?? max_keycode ?ǻ??ꤵ?줿?ϰϤ????äƤ???ɬ?פ????ꡢ ?????Ǥʤ????Х??顼 BadValue ?Ȥʤ롣

¾?Υ??饤?????Ȥ?Ʊ?????????ɥ???Ʊ?????????Ȥ߹??碌???Ф??? XGrabKey ??ȯ?Ԥ??Ƥ????????ϡ????顼 BadAccess ?Ȥʤ롣 ?????֤????ͤ????Ȥ߹??碌?? 1 ?ĤǤ⤢???????? AnyModifier ?? AnyKey, ?????Ѥ????ȥꥯ?????Ȥ?ɬ?????Ԥ??????顼 BadAccess ?Ȥʤ?(?????֤ϳ?Ω?????ʤ?)??

XGrabKey ?ϥ??顼 BadAccess, BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XUngrabKey ?ϡ????Υ??饤?????Ȥ????ꤷ?????????ɥ??򥰥??֤??Ƥ??????硢???Υ??? ???ɥ????ǤΥ??????Ȥ߹??碌?????????롣 ???δؿ??ϥ????ƥ??֤ʥ????֤??Ф??Ƥ?̵??̣?Ǥ??롣 ?????? modifiers ?? AnyModifier ?Ǥ????????ϡ???ǽ?ʥ??ǥ??ե????????Ȥ߹??碌???Ƥ??Ф??ƥꥯ?????Ȥ? ȯ?Ԥ??뤳?Ȥ??????Ǥ???(???ǥ??ե???????̵?????Ȥ??Ȥ߹??碌?˴ޤޤ???)?? ?????? keycode ?? AnyKey ?Ǥ????????ϡ???ǽ?????ƤΥ????????ɤ??Ф??ƥꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ? ?????Ǥ??롣

XUngrabKey ?ϥ??顼 BadValue, BadWindow ?򵯤??????Ȥ????롣

?֤???

????¾?Υ??饤?????Ȥ??????֤??Ƥ??륭??/?ܥ??????Ȥ߹??碌?򥯥饤?????? ???????֤??褦?Ȥ?????
???ꤵ?줿???ͤ????˥ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????? ???Ф??????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ????? ?Ƥ??ϰϤ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤? ?????Ȥ????롣
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XAllowAccess(3X11), XGrabButton(3X11), XGrabKeyboard(3X11), XGrabPointer(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11