XGrabButton(3X11) | XLIB FUNCTIONS | XGrabButton(3X11) |
̾??¶
XGrabButton, XUngrabButton - ?ݥ??ǥХ??????֤???
????¶
XGrabButton(display, button, modifiers,
grab_window, owner_events, event_mask,
pointer_mode, keyboard_mode, confine_to, cursor)
Display *display;
unsigned int button;
unsigned int modifiers;
Window grab_window;
Bool owner_events;
unsigned int event_mask;
int pointer_mode, keyboard_mode;
Window confine_to;
Cursor cursor;
XUngrabButton(display, button, modifiers,
grab_window)
Display *display;
unsigned int button;
unsigned int modifiers;
Window grab_window;
??????¶
- ?????֤ޤ??ϲ????????ݥ??Υܥ??ޤ??? AnyButton ?????ꤹ?롣
- confine_to
- ?ݥ????Ĥ??????륦?????ɥ??????뤤?? None ?????ꤹ?롣
- cursor
- ɽ?????????٤????????롢???뤤?? None ?????ꤹ?롣
- display
- X ?????Фؤ???³?????ꤹ?롣
- event_mask
- ???饤?????Ȥ????𤹤??ݥ????٥??Ȥ????ꤹ?롣 ???Υޥ????ϡ?ͭ???ʥݥ????٥??ȤΥޥ????ӥåȤΥӥåȤ??Ȥ??????? ?????ä????ΤǤ??롣
- grab_window
- ?????֥??????ɥ??????ꤹ?롣
- keyboard_mode
- ???ǹԤ??????ܡ??ɥ??٥??Ƚ????????ꤹ?롣 GrabModeSync ?ޤ??? GrabModeAsync ???????Ǥ??롣
- modifiers
- ?????ޥ????ν????ޤ??? AnyModifier ?????ꤹ?롣 ???Υޥ????ϡ?ͭ???ʥ????ޥ????ӥåȤΥӥåȤ??Ȥ??????¤????ä????Τ? ???롣
- owner_events
- ???٥??ȥޥ??????????Ƥ????????˥ݥ????٥??Ȥ??̾??̤????𤹤? ?Τ????????֥??????ɥ??ˤĤ??????𤹤??Τ????????ͤ????ꤹ?롣
- pointer_mode
- ???ǹԤ??ݥ????٥??Ȥν????????ꤹ?롣 GrabModeSync ?? GrabModeAsync ???????Ǥ??롣
????¶
?ؿ? XGrabButton ?ϥѥå??֤ʥ????֤????롣 ???衢?ʲ??ξ??郎???ƿ??ˤʤä??????˥ݥ??ϥ????ƥ??֤˥????֤???( XGrabPointer ?ˤ???)???ܥ??????줿???郎?ǽ??ݥ??????ֻ????????ꤵ??( ButtonPress ???٥??Ȥ?????????)?? ButtonPress ?????𤵤??롣
- ???ꤵ?줿???ǥ??ե???????????????Ū?˲??????Ƥ??ꡢ¾?Υܥ????????ǥ? ?ե????????????ɤ???????Ū?ˤϲ??????Ƥ??ʤ????ˡ??ݥ????????֤????? ???餺?????Ļ??ꤷ???ܥ?????????Ū?˲??????Ƥ??롣
- grab_window ???ݥ????ޤ??Ǥ??롣
- confine_to ???????ɥ???(?⤷??????)ɽ????ǽ?Ǥ??롣
- grab_window ?Τɤ????襦?????ɥ??ˤ????Ƥ⡢Ʊ???ܥ???/?ܥ??????ȹ礻 ???Ф????ѥå??֤ʥ????֤?¸?ߤ??ʤ???
?Ĥ??ΰ??????β????? XGrabPointer ??Ʊ???Ǥ??롣 ?ݥ??????????֤????ƤΥܥ?????Υ???줿???֤ˤʤä??Ȥ????????ƥ??? ?ʥ????֤ϼ?ưŪ?˽?λ????(????Ū?ʥ??ǥ??ե??????????ξ??֤ˤϰ?¸?? ?ʤ?)??
?ǥХ????Υ??٥??Ƚ????????뤵???Ƥ??????硢?ǥХ?????????????(???饤 ?????Ȥ?????????)??ʪ??Ū?ʾ??֤Ȥ????뤳?Ȥ????롣
Ʊ?????饤?????Ȥ?Ʊ?????????ɥ???Ʊ???ܥ???/???????ȹ礻???Ȥ????Ȥǡ? ???Υꥯ?????Ȥϰ????????ƤΥ????֤??????롣 ?????? modifiers ?? AnyModifier ?????ꤹ?뤳?Ȥϡ????ǥ??ե??????β?ǽ???ȹ礻???Ƥ??Ф??ƥ????֤? ?ꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ??????Ǥ???(???ǥ??ե????????Ȥ??ʤ????Ȥ??? ?礻?˴ޤޤ???)?? ???ꤵ?줿???ƤΥ??ǥ??ե??????????λ????ǥ????????ɤ????????Ƥ????Ƥ? ??ɬ?פϤʤ??? ?????? button ?? AnyButton ?????ꤹ?뤳?Ȥϡ???ǽ?ʥܥ??????Ƥ??Ф??ƥꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ? ?????Ǥ??롣 ?????ʳ??ξ????ϡ????ꤵ?줿?ܥ?????ʪ???ܥ????˳??????Ƥ????Ƥ??? ɬ?פϤʤ???
Ʊ?????????ɥ?????Ʊ???ܥ???/???????ȹ礻???Ф???¾?Υ??饤?????Ȥ????? XGrabButton ??ȯ?Ԥ??Ƥ????????ϡ????顼 BadAccess ?Ȥʤ롣 ?????֤????Ĥ??벿?餫???ȹ礻?????????硢 AnyModifier ?? AnyButton ??ɬ?????Ԥ??????顼 BadAccess ?Ȥʤ?(?????֤ϳ?Ω?????ʤ?)?? XGrabButton ?ϥ????ƥ??֤ʥ????֤??Ф??Ƥ?̵???Ǥ??롣
XGrabButton ?ϥ??顼 BadCursor, BadValue, BadWindow ???????Ȥ????롣
?ؿ? XUngrabButton ?ϡ????ꤷ?????????ɥ??Υѥå??֤ʥܥ???/???????ȹ礻?????饤?????Ȥ? ???äƥ????֤????Ƥ????????????????????롣 ?????? modifiers ?? AnyModifier ?????ꤹ?뤳?Ȥϡ????ǥ??ե??????β?ǽ???ȹ礻???Ƥ??Ф??ƥ????ֲ????? ?ꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ??????Ǥ??롣?????ȹ礻?ϥ??ǥ??ե????????Ȥ? ?ʤ??ȹ礻???ޤࡣ ?????? button ?? AnyButton ?????ꤹ?뤳?Ȥϡ???ǽ?ʥܥ??????Ƥ??Ф??ƥꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ??? ???Ǥ??롣 XUngrabButton ?ϥ????ƥ??֤ʥ????֤??Ф??Ƥ?̵???Ǥ??롣
XUngrabButton ?ϥ??顼 BadValue, BadWindow ???????Ȥ????롣
?֤???¶
??Ϣ????¶
XAllowEvents(3X11), XGrabPointer(3X11), XGrabKey(3X11),
XGrabKeyboard(3X11),
Xlib - C Language X Interface
Release 6.5 | X Version 11 |