Scroll to navigation

XSetDeviceFocus(3X11) X FUNCTIONS XSetDeviceFocus(3X11)

̾??

XSetDeviceFocus, XGetDeviceFocus - ??ĥ???ϥǥХ????Υե????????????椹??

????

XSetDeviceFocus(display, device, focus, revert_to, time)
Display *display;
Display *device;
Window focus;
int revert_to;
Time time;

XGetDeviceFocus(display, device, focus_return, revert_to_return, time_return)
Display *display;
Display *device;
Window *focus_return;
int *revert_to_return;
int *time_return;

??????

X ?????Фؤ???³?????ꤹ?롣
?ե??????????䤤???碌???ѹ????Ԥʤ??ǥХ????????ꤹ?롣
???????ɥ??? PointerRoot, FollowKeyboard, None ?Τ????줫?????ꤹ?롣
?ե??????????????ɥ??? PointerRoot, FollowKeyboard, None ?Τ????줫???֤????롣
???????ɥ???ɽ????ǽ?ˤʤä??????ϥե??????????ɤ??????뤫?????ꤹ?롣 RevertToParent, RevertToPointerRoot, RevertToFollowKeyboard, RevertToNone ?Τ????줫???????Ǥ??롣
???ߤΥե????????ξ??֤? RevertToParent, RevertToPointerRoot, RevertToFollowKeyboard, RevertToNone ?Τ????줫???֤????롣
?ǥХ????? last_focus_time ???֤????롣
???֤????ꤹ?롣 ?????ॹ?????פ? CurrentTime ???Ϥ????Ȥ??Ǥ??롣

????

XSetDeviceFocus ?ꥯ?????Ȥϻ??ꤷ???ǥХ????Υե????????Ⱥǽ??ե????????ѹ????? (last-focus-change time)???ѹ????롣 ???ꤷ?????֤????ߤκǽ??ե????????ѹ????֤??????ᤤ?????䡢???ߤ? X ?????Фλ??֤????٤??????ˤϲ????Ԥ????ʤ??? CurrentTime is replaced by the current X server time). ?????Ǥʤ??????ϡ??ǽ??ե????????ѹ????֤ϻ??ꤷ?????֤????ꤵ?졢 CurrentTime ?ϸ??ߤ? X ?????Фλ??֤??֤??????????롣 XSetDeviceFocus ?? X ?????Ф? DeviceFocusIn ???٥??Ȥ? DeviceFocusOut ???٥??Ȥ??????????롣

focus ???????˽??äơ??ʲ???ư??????롣

  • focus ?? None ?ξ??硢???ƤΥǥХ??????٥??ȤϿ??????ե??????????????ɥ??????? ???????ޤ??˴????졢?????? revert_to ??̵?뤵???롣
  • focus ?????????ɥ??ξ??硢???줬?ǥХ????Υե??????????????ɥ??Ȥʤ롣 ???????줿?ǥХ??????٥??Ȥ??̾??Ϥ??Υ??????ɥ??????β??̥??????ɥ??? ???Τ??줿?????ˤϡ????٥??Ȥ??̾??̤??????Τ????롣 ?????Ǥʤ????硢???٥??Ȥϥե??????????????ɥ??˴ؤ??????Τ????롣
  • focus ?? PointerRoot, ?ξ??硢???ꤷ???ǥХ????????ƥ??٥??Ȥ????Τ??줿???˥ݥ??󥿤????롢 Ǥ?դΥ????꡼???Υ롼?ȥ??????ɥ???ưŪ?˥ե??????????????ɥ??ˤʤ롣 ???ξ??硢?????? revert_to ??̵?뤵???롣
  • focus ?? FollowKeyboard ?ξ??硢???줾???????ϥ??٥??Ȥκݤ? X ?Υ????ܡ??ɥե????????????ꤵ???Ƥ??? ???????ɥ???ưŪ?˥ե??????????????ɥ??ˤʤ롣

???ꤷ???ե??????????????ɥ??? XSetDeviceFocus ???ƤӽФ??줿?Ȥ???ɽ????ǽ?Ǥʤ????Фʤ??ʤ????????Ǥʤ????Х??顼 BadMatch ?Ȥʤ롣 ?ե??????????????ɥ????夫??ɽ????ǽ?Ǥʤ??ʤä????硢X ?????Фϰ????? revert_to ??ɾ?????ưʲ??Τ褦?˿??????ե??????????????ɥ??????ꤹ?롣

  • revert_to ?? RevertToParent ?ξ??硢?ե????????Ͽƥ??????ɥ?(???뤤?ϺǤ??ᤤɽ????ǽ?? ???ĥ??????ɥ?)?????ꡢ?????? revert_to ???ͤ? RevertToNone ?Ȥʤ롣
  • revert_to ?? RevertToPointerRoot ?ξ??硢?ե????????? PointerRoot ?????롣 Ʊ?ͤ? RevertToFollowKeyboard ?ξ????? FollowKeyboard ?ˡ? RevertToNone ?ξ????? None ?????롣

?ե????????????ä????硢X ?????Ф? DeviceFocusIn ???٥??Ȥ? DeviceFocusOut ?????????뤬???ǽ??ե????????ѹ????֤ϱƶ????????ʤ???

???ϳ?ĥ?ǥХ?????ɬ???????ե????????????뵡ǽ???б?????ɬ?פϤʤ??? ???Υꥯ?????Ȥ??б????Ƥ??ʤ??ǥХ????˥ե????????????ꤷ?褦?? ?????? BadMatch ???顼?Ȥʤ롣 ?????ǥХ????????Υꥯ?????Ȥ??б????Ƥ??뤫?ɤ????? XOpenDevice ???֤??????ˤ??ä??Τ뤳?Ȥ??Ǥ??롣 ?ե??????????б????Ƥ????ǥХ??????Ф??Ƥϡ?XOpenDevice ?? input_class ?ե??????ɤ????? FocusClass (?????? XI.h ???? ?????????Ƥ???)?Ǥ??? XInputClassInfo ??¤?Τ??֤???

XSetDeviceFocus ?ϥ??顼 BadDevice, BadMatch, BadValue, BadWindow ?򵯤??????Ȥ????롣

XGetDeviceFocus ?ꥯ?????Ȥϥե??????????????ɥ??Ȥ??θ??ߤΥե??????????֤??֤???

???Ƥ????ϳ?ĥ?ǥХ??????ե?????????ǽ?Ǥ????櫓?ǤϤʤ????ե????????? ?뤳?Ȥ??Ǥ??ʤ??ǥХ????Υե??????????֤??䤤???碌?褦?Ȥ????ȡ? BadMatch ???顼?Ȥʤ롣?ե??????????뤳?Ȥ??Ǥ????ǥХ????ϡ? XOpenDevice ?ꥯ?????Ȥ??Ԥ??줿???????ϥ??饹?ե????????ξ????? ?֤???

XGetDeviceFocus ?ϥ??顼 BadDevice, BadMatch ?򵯤??????Ȥ????롣

?֤???

?????ʥǥХ????????ꤵ?줿?????ꤷ???ǥХ?????¸?ߤ??ʤ????????饤???? ?Ȥ? XOpenInputDevice ?ǥ????ץ󤷤Ƥ??ʤ??????Υ??顼?ϡ????ꤷ ???ǥХ????? X ?Υ????ܡ??ɥǥХ????? X ?Υݥ??󥿥ǥХ????Ǥ??ä????? ?ⵯ???롣
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣
?????? Window ???ͤ??????????Ƥ??? Window ???ؤ??Ƥ??ʤ???
???Υ??顼?ϡ? XGetDeviceFocus?ꥯ?????? ?? XSetDeviceFocus ?ꥯ?????Ȥ˥????Фμ????ˤ????ե??????????Ǥ??ʤ??ǥХ????????ꤷ???? ???????˵????롣

??Ϣ????

Programming with Xlib

Release 6.5 X Version 11