Scroll to navigation

XGrabPointer(3X11) XLIB FUNCTIONS XGrabPointer(3X11)

̾??

XGrabPointer, XUngrabPointer, XChangeActivePointerGrab - ?ݥ??󥿤򥰥??֤???

????

int XGrabPointer(display, grab_window, owner_events, event_mask, pointer_mode,
keyboard_mode, confine_to, cursor, time)
Display *display;
Window grab_window;
Bool owner_events;
unsigned int event_mask;
int pointer_mode, keyboard_mode;
Window confine_to;
Cursor cursor;
Time time;

XUngrabPointer(display, time)
Display *display;
Time time;

XChangeActivePointerGrab(display, event_mask, cursor, time)
Display *display;
unsigned int event_mask;
Cursor cursor;
Time time;

??????

?ݥ??󥿤??Ĥ??????륦?????ɥ??? None ?????ꤹ?롣
?????֤δ֤?ɽ???????륫?????뤫 None ?????ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣
?ɤΥݥ??󥿥??٥??Ȥ򥯥饤?????Ȥ????Τ??뤫???ꤹ?롣 ?ޥ????ͤ????????ݥ??󥿥??٥??ȤΥޥ????ӥå??ͤΥӥåȤ??Ȥ??????¤? ???ä????ΤǤ??롣
?????֥??????ɥ??????ꤹ?롣
?????ܡ??ɥ??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ???????Ǥ??롣
???٥??ȥޥ????????򤷤Ƥ????????ˡ??ݥ??󥿥??٥??Ȥ??̾??̤????Τ??뤫?? ?????֥??????ɥ??ˤĤ??????Τ??뤫?򼨤??????ͤ????ꤹ?롣
?ݥ??󥿥??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ?????ꤹ?롣
?????????ꤹ?롣 ?????ॹ?????פ? CurrentTime ???????Ǥ??롣

????

?ؿ? XGrabPointer ?ϥݥ??󥿤??????򥢥??ƥ??֤˥????֤??????????????????????? GrabSuccess ???֤??? ?ʹߤΥݥ??󥿥??٥??Ȥϥ????֤??Ԥä????饤?????Ȥ??Ф??ƤΤ????𤵤? ?롣 XGrabPointer ?Ϥ??Υ??饤?????Ȥ??Ԥä??ݥ??󥿤Υ????ƥ??֤ʥ????֤?????̵?뤹?롣 owner_events ?? False ?ʤ??С????????줿???ƤΥݥ??󥿥??٥??Ȥϡ????٥??ȥޥ????ˤ??ä????? ?????Ƥ????????˸¤ä? grab_window ?ˤĤ??????𤵤??롣 owner_events ?? True ?Ǥ??ꡢ?ݥ??󥿥??٥??Ȥ??̾??Ϥ??Υ??饤?????Ȥ????𤵤????Ϥ??ʤ??С? ???Υ??٥??Ȥ??̾??̤????𤵤??롣 ?????Ǥʤ??????ϡ????Υ??٥??Ȥϥ??٥??ȥޥ????ˤ??ä????򤵤??Ƥ????? ???˸¤ä? grab_window ?ˤĤ??????𤵤??롣 owner_events ?Τ??줾?????ͤˤĤ??ơ????𤵤??ʤ??ä????٥??Ȥ??˴??? ???롣

the pointer_mode ?? GrabModeAsync ?ʤ??С??ݥ??󥿥??٥??Ȥν??????̾??̤???³?????롣 ???Υ??饤?????Ȥ??ݥ??󥿤????뤷?Ƥ??????硢?ݥ??󥿤˴ؤ??? ???٥??Ȥν????ϺƳ??????롣 pointer_mode ?? GrabModeSync ?ʤ??С??ݥ??󥿤ξ???(???饤?????ȥ??ץꥱ???????󤬸???)?????뤵???? ?????ȹͤ????졢?????֤??ԤäƤ??륯?饤?????Ȥ? XAllowEvents ???ƤӽФ??????ݥ??󥿤Υ????֤????????????ޤǤ? X ?????ФϤ????ʾ??? ?ݥ??󥿥??٥??Ȥ????????ʤ??? ?ݥ??󥿤μºݤ??Ѳ??ϥݥ??󥿤????뤵???Ƥ????֤⼺?????ʤ??????????? ñ?˥????ФΥ??塼?????????졢???ǽ????????롣

keyboard_mode ?? GrabModeAsync ?ʤ??С??????ܡ??ɥ??٥??Ȥν????ϥ????֤Υ????ƥ??ֲ??ˤ????ƶ??ϼ??? ?ʤ??? keyboard_mode ?? GrabModeSync ?ʤ??С??????ܡ??ɤξ???(???饤?????ȥ??ץꥱ???????󤬸???)?????뤵?? ?Ƥ????ȹͤ????졢?????֤??ԤäƤ??륯?饤?????Ȥ? XAllowEvents ???ƤӽФ??????ݥ??󥿤Υ????֤????????????ޤǤ? X ?????ФϤ????ʾ??? ?????ܡ??ɥ??٥??Ȥ????????ʤ??? ?ºݤΥ????ܡ??ɥ??٥??Ȥ??Ѳ??ϥݥ??󥿤????뤵???Ƥ????֤⼺?????ʤ??? ???????ϸ??ǽ??????뤿???ˡ?ñ?˥????ФΥ??塼?????????????????Ǥ??롣

cursor ?????ꤵ?줿???硢???Υ????????ϥݥ??󥿤??ɤΥ??????ɥ??????? ?Ƥ??Ƥ?ɽ???????롣 None ?????ꤵ?줿?????ϡ??ݥ??󥿤? grab_window ?䤽?Υ??֥??????ɥ???1?Ĥ? ???ä????ˤ??Υ??????ɥ????̾??Υ??????뤬ɽ???????롣 ?????ʳ??ξ????ˤϡ?grab_window ?Υ??????뤬ɽ???????롣

confine_window ?????ꤵ?줿?????ϡ??ݥ??󥿤Ϥ??Υ??????ɥ??????Ĥ??? ???????롣 confine_to ?? grab_window ?ȴط??????äƤ???ɬ?פϤʤ??? ?ǽ??ξ??֤ǥݥ??󥿤? confine_window ?????äƤ??ʤ??????ϡ? ?????֤??????ƥ??ֲ???????ľ???˥ݥ??󥿤????Υ??????ɥ??κǤ??ᤤ?դ? ?ȼ?ưŪ?˰?ư???롣???λ???enter/leave ???٥??Ȥ??̾??̤????????????롣 ???θ??? confine_to ???????ɥ??ι??????Ѥ????줿?????ϡ??ݥ??󥿤Ϥ??? ???????ɥ??˴ޤޤ줿?ޤޤˤʤ??褦?ˡ?ɬ?פ˱????Ƽ?ưŪ?˰?ư???롣

?????? time ?????Ѥ??ơ????饤?????Ȥϥ??ץꥱ???????󤬱????????ޤǤ?Ĺ ???֤????????????䡢?ͥåȥ?????ٱ䤬?礭???????????????Զ????????? ?뤳?Ȥ??Ǥ??롣 ???Ȥ??ơ?2?ĤΥ??ץꥱ???????󤬤??ꡢ???Τ??????⥯???å????줿???? ?ݥ??󥿤Υ????֤????̤˹Ԥ??Ȥ??????????ͤ??롣 ?ɤ????Υ??ץꥱ?????????⥤?٥??Ȥ????????????ॹ?????פ????ꤷ?Ƥ??? ?С?2???ܤΥ??ץꥱ?????????Ϻǽ??Υ??ץꥱ??????????????®??Ω???夬 ?ꡢ?ݥ??󥿤򤦤ޤ??????֤Ǥ??롣 ?ǽ??Υ??ץꥱ?????????ϡ???ʬ?Υꥯ?????Ȥ???????????????¾?? ???ץꥱ???????󤬥ݥ??󥿤򥰥??֤??????Ȥ??Τ餵???롣

XGrabPointer ?? EnterNotify ???٥??Ȥ? LeaveNotify ?????????롣

grab_window ???????ɥ??? confine_to ???????ɥ???ɽ???Բ?ǽ?Ǥ??????礫?? confine_to ???????ɥ????롼?ȥ??????ɥ??ζ??????鴰???˳??˽ФƤ????? ???ˤ? XGrabPointer ?ϼ??Ԥ??? GrabNotViewable ???֤??? ¾?Υ??饤?????Ȥ??ݥ??󥿤򥢥??ƥ??֤˥????֤??Ƥ??????硢???δؿ??? ???Ԥ??? AlreadyGrabbed ???֤??? ?ݥ??󥿤?¾?Υ??饤?????ȤΥ????ƥ??֤ʥ????֤ˤ??ä????뤵???Ƥ????? ???ϡ????δؿ??ϼ??Ԥ??? GrabFrozen ???֤??? ???ꤷ?????֤??ǽ??ݥ??󥿥????ֻ????????ᤤ?????? X ?????Фθ??߻????? ???٤??????ˤϡ????δؿ??ϼ??Ԥ??? GrabInvalidTime ???֤??? ?????ʳ??ξ????ˤϡ??ǽ??ݥ??󥿥????ֻ????ˤϻ??ꤷ?????֤????åȤ????? (CurrentTime ?? X ?????Фθ??߻??????֤???????????)??

XGrabPointer ?ϥ??顼 BadCursor, BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XUngrabPointer ?ϡ????Υ??饤?????Ȥ? XGrabPointer, XGrabButton ?ؿ??θƤӽФ??????̤˥ܥ????򲡤??????Ȥˤ??äƥݥ??󥿤򥢥??ƥ??֤? ?????֤??Ƥ??????硢?ݥ??󥿤ȥ??塼?????äƤ??륤?٥??Ȥ????????롣 ???ꤷ?????郎?ǽ??ݥ??󥿥????ֻ????????ᤤ?????䡢X ?????Фθ??߻??? ???????٤??????ˤϡ? XUngrabPointer ?ϥݥ??󥿤????????ʤ??? ???δؿ??? EnterNotify ???٥??Ȥ? LeaveNotify ???٥??Ȥ????????롣 ?ݥ??󥿤Υ????ƥ??֤ʥ????֤??б????륤?٥??ȥ??????ɥ??? confine_to ???????ɥ???ɽ????ǽ?ˤʤä??????䡢???????ɥ??ι??????Ѳ??ˤ??ä? confine_to ???????ɥ????롼?ȥ??????ɥ??ζ??????鴰???˳??˽ФƤ??ޤ? ???????ˤϡ?X ?????Ф? UngrabPointer ?ꥯ?????Ȥ???ưŪ?˼¹Ԥ??롣

?ؿ? XChangeActivePointerGrab ?ϡ????饤?????Ȥ??ݥ??󥿤򥢥??ƥ??֤˥????֤??Ƥ??ơ????ꤷ?????郎 ?ǽ??ݥ??󥿥????ֻ??????????᤯?ʤ??????? X ?????Фθ??߻??????????? ???ʤ??????˻??ꤵ?줿ưŪ?ѥ??᡼?????ѹ????롣 ???δؿ??? XGrabButton ?Υѥå??֤ʥѥ??᡼?????Ф??Ƥ?̵???Ǥ??롣 ?????? event_mask ?? cursor ?β????? XGrabPointer ?ι??ܤ??????????̤??Ǥ??롣

XChangeActivePointerGrab ?ϥ??顼 BadCursor, BadValue ?򵯤??????Ȥ????롣

?֤???

?????? Cursor ???ͤ????????????Ƥ??? Cursor ???ؤ??Ƥ??ʤ???
???ꤵ?줿???ͤ????˥ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????? ???Ф??????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ????? ?Ƥ??ϰϤ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤? ?????Ȥ????롣
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XAllowEvents(3X11), XGrabButton(3X11), XGrabKey(3X11), XGrabKeyboard(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11