XGrabDevice(3X11) | X FUNCTIONS | XGrabDevice(3X11) |
̾??¶
XGrabDevice, XUngrabDevice - ???ꤷ????ĥ?ǥХ????Υ????֤Ȳ??????Ԥʤ?
????¶
int XGrabDevice(display, device, grab_window, owner_events, event_count, event_list, this_device_mode, other_devices_mode, time)
Display *display;
XDevice *device;
Window grab_window;
Bool owner_events;
int event_count;
XEventClass *event_list;
int this_device_mode, other_devices_mode;
Time time; XUngrabDevice(display, device, time)
Display *display;
XDevice *device;
Time time;
??????¶
- display
- X ?????Фؤ???³?????ꤹ?롣
- device
- ?????֤??뤤?ϲ??????????ǥХ????????ꤹ?롣
- grab_window
- ?ǥХ??????б????륦?????ɥ???ID?????ꤹ?롣
- owner_events
- ?ǥХ????????Υ??٥??Ȥ??̾??̤????𤵤??뤫???????֥??????ɥ??ˤĤ??? ???𤵤??뤫???????ͤ????ꤹ?롣
- event_count
- event_list ?????????ǿ??????ꤹ?롣
- event_list
- ???饤?????Ȥ????????褦?Ȥ??륤?٥??Ȥ??ؼ????롢???٥??ȥ??饹?ؤΥ? ???Ȥ????ꤹ?롣???????Υ??٥??ȥ??饹?ϡ??????֤??????ǥХ????????ꤷ?Ƽ? ?????Ƥ??ʤ????Фʤ??ʤ???
- this_device_mode
- ???ΥǥХ??????????????ä????٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ?????ꤹ?롣
- other_devices_mode
- ¾?ΥǥХ??????????????ä????٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ?????ꤹ?롣
- time
- ?????????ꤹ?롣 ?????ॹ?????פ? CurrentTime ?Τ????줫?????ꤹ?롣
????¶
XGrabDevice ?ꥯ?????Ȥϡ??ǥХ????????????ƥ??֤˥????֤??? DeviceFocusIn ???٥??Ȥ? DeviceFocusOut ???٥??Ȥ????????롣 ?????ʹߤΥǥХ????Υ??٥??Ȥϡ??????֤??Ԥä????饤?????ȤΤߤ??????? ???롣 XGrabDevice ?ϡ????Υ??饤?????Ȥˤ??????ƤΥ????ƥ??֤ʥǥХ????Υ????֤????? ?롣 event_list ?ϥ??٥??ȥ??饹?Υꥹ?ȤؤΥݥ??Ǥ??롣???Υꥹ?Ȥϡ? ?????֤??????ƥ??֤Ǥ????֤˥??饤?????Ȥ????????褦?Ȥ??륤?٥??Ȥ??? ?ꤹ?롣 owner_events ?? False ?Ǥ??????硢???????줿???ƤΥǥХ??????٥??Ȥϡ?grab_window ?????? ?????Ф??Υ??????ɥ??ˤĤ??????𤵤??롣 owner_events ?? True ?Ǥ??ꡢ???????줿?ǥХ??????٥??Ȥ??̾??Ϥ??Υ??饤?????Ȥ????𤵤??? ?褦?ʾ??硢???Υ??٥??Ȥ??̾??̤????𤵤??롣?????Ǥʤ??????ϡ? grab_window ?ˤĤ??????𤵤??롣?????ˡ?event_list ?ǻ??ꤵ???Ƥ????? ???ϡ????Υ??٥??Ȥ????????𤵤??롣
?????? this_device_mode ?? GrabModeAsync ?ʤ??С??ǥХ??????٥??Ȥν??????̾??̤?³???????롣 ?ǥХ????????ߤ??Υ??饤?????Ȥˤ??ä????뤵???Ƥ????????ϡ????θ??˥? ?Х??????٥??Ȥν??????Ƴ??????롣 ?????? this_device_mode ?? GrabModeSync ?ʤ??С??ǥХ????ξ???(???饤?????ȥ??ץꥱ???????鸫??????)?????? ?????Ƥ????ȹͤ????졢X ?????ФϤ????ʹߤΥǥХ??????٥??Ȥ????????ʤ? ?ʤ롣?????ϡ??????֤??ԤäƤ??륯?饤?????Ȥ? XAllowDeviceEvents ?θƤӽФ??ˤ??????????Ԥ??????ǥХ????Υ????֤????????????ޤ?³???? ?ǥХ????????뤵???Ƥ????֤⡢?ºݤΥǥХ??????Ѳ??ϼ??????ʤ??????ǽ? ?????뤿???ˡ?X ?????Ф?ñ?ˤ????????Ѳ??塼???????Ƥ?????
other_devices_mode ?? GrabModeAsync ?ʤ??С?¾?ΥǥХ??????????????ä????٥??Ȥν????ϡ??????֤Υ????ƥ??? ???ˤ????ƶ????????ʤ??? other_devices_mode ?? GrabModeSync ?ʤ??С??????֤????Ƥ????ǥХ????????????ƤΥǥХ????ξ???(???饤???? ?ȥ??ץꥱ???????鸫??????)?????뤵???Ƥ????ȹͤ????졢X ?????Ф? ?????ʹߤ??????ΥǥХ????????Υ??٥??Ȥ????????ʤ??ʤ롣 ?????ϡ??????֤??ԤäƤ??륯?饤?????Ȥ? XAllowDeviceEvents ?ˤ??äƲ??????Ԥ??????ǥХ????Υ????֤????????????ޤ?³???? ?ǥХ????????뤵???Ƥ????֤⡢?ºݤΥ??٥??Ȥϼ??????ʤ??????ǽ??????? ?????ˡ?X ?????Ф?ñ?ˤ????????Ѳ??塼???????Ƥ?????
¾?Υ??饤?????Ȥ??ǥХ??????ƥ??֤˥????֤??Ƥ??????硢 XGrabDevice ?ϼ??Ԥ??? AlreadyGrabbed ???֤??? grab_window ??ɽ????ǽ?Ǥʤ??????⤳?δؿ??ϼ??Ԥ??? GrabNotViewable ???֤??? ?ǥХ?????¾?Υ??饤?????ȤΥ????ƥ??֤ʥ????֤ˤ??ä????뤵???Ƥ????? ?硢???δؿ??ϼ??Ԥ? GrabFrozen ???֤??? ???ꤵ?줿???郎?ǽ??ǥХ????????ֻ??????????ᤤ?????䡢X ?????Фθ??? ?λ??????????٤??????ϡ????δؿ??ϼ??Ԥ??? GrabInvalidTime ???֤??? ???????ʳ??ξ????ˤϡ??ǽ??ǥХ????????ֻ????ˤϻ??ꤵ?줿???郎???å? ??????( CurrentTime ?? X ?????Фθ????????֤???????????)??
???饤?????Ȥˤ??륢???ƥ??֤??????֤?ͭ???ʾ??֤ǡ????Υ??饤?????Ȥ? ???ΥǥХ??????Ĥ??????硢?????ƥ??֤??????֤ϲ????????롣?ǥХ??????? ?ᤷ?Ƥ??륯?饤?????ȤΥ????ƥ??֤ʥ????֤ˤ??ä????뤵???Ƥ??????硢 ?????ϲ????????롣
XGrabDevice ?ϡ????顼 BadClass, BadDevice, BadValue, BadWindow ???????Ȥ????롣
XUngrabDevice ?ꥯ?????Ȥϡ????饤?????Ȥ? XGrabDevice ?? XGrabDeviceKey ???ȤäƥǥХ??????ƥ??֤˥????֤??Ƥ??????硢???ΥǥХ????ȥ??塼 ?????äƤ??륤?٥??Ȥ????????롣 ¾?ΥǥХ????????Υ????֤ˤ??ä????뤵???Ƥ??????硢 XUngrabDevice ???????????????롣 ???ꤷ?????郎?ǽ??ǥХ????????ֻ????????ᤤ?????䡢X ?????Фθ????? ???????٤??????ˤϡ? XUngrabDevice ?ϥǥХ????䥭?塼?????äƤ??륤?٥??Ȥ????????ʤ??? ???Υꥯ?????Ȥ? DeviceFocusIn ???٥??Ȥ? DeviceFocusOut ???٥??Ȥ????????롣 ?ǥХ????Υ????ƥ??֤ʥ????֤??Ф??륤?٥??ȥ??????ɥ???ɽ????ǽ?Ǥʤ? ?ʤä????硢X ?????Фϼ?ưŪ?? UngrabDevice ?ꥯ?????Ȥ??Ф???
XUngrabDevice ?ϥ??顼 BadDevice ???????Ȥ????롣
?֤???¶
- BadDevice
- ?????ʥǥХ????????ꤵ?줿?????ꤵ?줿?ǥХ?????¸?ߤ??ʤ????????饤?? ???Ȥ? XOpenInputDevice ?ˤ??äƥ????ץ??Ƥ??ʤ??????Υ??顼 ?ϡ????ꤵ?줿?ǥХ????? X ?Υ????ܡ??ɥǥХ????? X ?Υݥ??ǥХ??? ?Ǥ????????ˤⵯ???롣
- BadValue
- ???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼???????Ȥ? ???롣
- BadWindow
- ?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???
??Ϣ????¶
XAllowDeviceEvents(3X), XGrabDeviceButton(3X), XGrabDeviceKey(3X),
Programming With Xlib
Release 6.5 | X Version 11 |