XSendEvent(3X11) | XLIB FUNCTIONS | XSendEvent(3X11) |
̾??¶
XSendEvent, XDisplayMotionBufferSize, XGetMotionEvents, XTimeCoord - ???٥??ȹ?¤?Τȥݥ???ư??????¤?Τ?????
????¶
Status XSendEvent(display, w, propagate,
event_mask, event_send)
Display *display;
Window w;
Bool propagate;
long event_mask;
XEvent *event_send;
unsigned long XDisplayMotionBufferSize(display)
Display *display;
XTimeCoord *XGetMotionEvents(display, w,
start, stop, nevents_return)
Display *display;
Window w;
Time start, stop;
int *nevents_return;
??????¶
- display
- X ?????Фؤ???³?????ꤹ?롣
- event_mask
- ???٥??ȥޥ????????ꤹ?롣
- event_send
- ???륤?٥??Ȥ????ꤹ?롣
- nevents_return
- ??ư?????Хåե????饤?٥??Ȥο????֤????롣
- propagate
- ?????ͤ????ꤹ?롣
- start
-
- stop
- ???٥??Ȥ???ư?????Хåե??????֤????????ֳִ֤????ꤹ?롣 ?????ॹ?????פ? CurrentTime ?????ꤹ?롣
- w
- ???٥??Ȥ????????Υ??????ɥ??? PointerWindow, InputFocus ?Τ????줫?????ꤹ?롣
????¶
?ؿ? XSendEvent ???оݥ??????ɥ??????̤??????ꤷ?????٥??Ȥ??ɤΥ??饤?????Ȥ????????? ?????ꤷ???????ƥ??֤ʥ????֤?̵?뤹?롣 ???δؿ??ˤϥ??٥??ȥޥ??????Ϥ??ʤ????Фʤ??ʤ??? ?????????٥??ȥޥ???̾?˴ؤ??Ƥ? 10.3 ?ϤȤ??뤳?ȡ? ???δؿ??ϰ????? w ???Ѥ??ơ??ʲ??Τ褦?ˤ????оݥ??????ɥ??????̤??롣
- w ?? PointerWindow ?ʤ??С??оݥ??????ɥ??ϥݥ????ޤ०?????ɥ??Ǥ??롣
- w ?? InputFocus ?Ǥ??ꡢ?ե??????????????ɥ????ݥ????ޤ??ʤ??С??оݥ??????ɥ??? ?ݥ????ޤ०?????ɥ??Ǥ??롣 ?????Ǥʤ????С??оݥ??????ɥ??ϥե??????????????ɥ??Ǥ??롣
XSendEvent ?ϰ????? propagate ???ʲ??Τ褦?˻Ȥäơ????ꤷ?????٥??Ȥ? ?ɤΥ??饤?????Ȥ????????뤫?????ꤹ?롣
- ???٥??ȥޥ????????????ξ??硢???٥??Ȥ??оݥ??????ɥ??????????? ???饤?????Ȥ????????롣 ???Υ??饤?????Ȥ????Ϥ?¸?ߤ??ʤ??????ˤϡ????٥??ȤϤɤ??ˤ? ???????ʤ???
- propagate ?? False ?ξ??硢???٥??Ȥ??оݥ??????ɥ??ǥ??٥??ȥޥ??????ȤäƤ??? ???٥??ȷ??????Ƥ??????ƤΥ??饤?????Ȥ????????롣
- propagate ?? True ?Ǥ??ꡢ???٥??ȥޥ??????Ȥä??оݥ??????ɥ??Ǥ??Υ??٥??ȷ??????? ???Ƥ??륯?饤?????Ȥ?̵???????ˤϡ????ξ????????????Ǥ??ᤤ ???襦?????ɥ????֤??????????롣???ξ????Ȥϡ??оݥ??????ɥ??? ???饤?????ȤΤɤ줫?????٥??ȥޥ????Ǥ??η??????Ƥ??뤳?Ȥȡ? ?֤ˤ??륦?????ɥ??????Υ??٥??Ȥ????Ť??ߤ????褦?ʥޥ????? ???äƤ??ʤ????ȤǤ??롣 ???Τ褦?ʥ??????ɥ???̵???????䡢???Υ??????ɥ????ե??????????????ɥ? ?οƤǤ??ꡢ???? InputFocus ???оݥ??????ɥ??Ȥ??ƻ??ꤵ???Ƥ????????ˤϡ????Υ??٥??ȤϤɤ? ???饤?????Ȥˤ????????ʤ??? ?????Ǥʤ????硢???Υ??٥??Ȥϡ??ǽ?Ū???оݥ??????ɥ????ǻ??ꤷ???? ?Υ??٥??Ȥ٥??ȥޥ??????Ȥä????Ƥ??????ƤΥ??饤?????Ȥ? ???Τ????롣
X ?????Ф?ɬ?פ˱????ƹ?¤?Τ????ȤΥХ??ȸ????????Ԥ????褦?ˡ? XEvent ??¤?Τϥ??????٥??Ȥ?1?ĤǤ??뤫????ĥ?Ȥ??????????줿???٥??Ȥ?1?Ĥ? ?ʤ????Фʤ??ʤ?(?????Ǥʤ??????ˤϥ??顼 BadValue ?Ȥʤ?)?? ?????ʳ??ξ????ˤϡ?X ?????Фˤ??륤?٥??ȹ?¤?Τ????Ƥ??ѹ????????å? ?ϹԤ????ʤ???????????ž???????륤?٥??ȤǤ? send_event ?϶???Ū?? True ?ˤ??졢???٥??ȤΥ??ꥢ???ֹ????????????ꤵ???롣 ???äơ????????Υե??????ɤ? display ?ե??????ɤ? XSendEvent ??????̵?뤵???롣
XSendEvent ???????ץ??ȥ????ե????ޥåȤؤ??Ѵ??˼??Ԥ????????? 0 ???֤????????? ?ʤ????? 0 ?ʳ????ͤ??֤??? XSendEvent ?? BadValue, BadWindow ???顼???????Ȥ????롣
?????Фˤ??äƤϥݥ???ư???κǶ??????????ݻ????Ƥ??ơ? MotionNotify ???٥??Ȥ????Τ??????????٤????ޥ?????ư????Ϳ???뤳?Ȥ??Ǥ??????Τ??? ?롣 ?ؿ? XGetMotionEvents ?ϡ??????????????Ѳ?ǽ?ˤ??롣
?ؿ? XGetMotionEvents ???ꤷ?????ϻ??狼?齪λ?????ޤ?(ξü???ޤ?)?˵??????ޥ????ΰ?ư?????? ?Хåե????Υ??٥??Ȥ??????֤??????Υ??٥??Ȥϻ??ꤷ?????????ɥ???(?? ?????ޤ?)?Ǥθ??߰??֤κ?ɸ?????äƤ??롣 ?????Ф???ư?????ݡ??Ȥ??Ƥ??ʤ????????ϻ??郎??λ?????????٤????? ???ϻ??郎?????????????Ǥ????????ˤϡ????٥??Ȥ??????֤????ʤ??? ???ξ??硢 XGetMotionEvents ?? NULL ???֤??? ??λ???郎?????????????ξ????ϡ? CurrentTime ?????ꤷ?????Ȥˤʤ롣 XGetMotionEvents ?ϥ??顼 BadWindow ???????Ȥ????롣
??¤??¶
XTimeCoord ??¤?Τ????Ƥ???
typedef struct { Time time; short x, y; } XTimeCoord;
time ?????Фˤϥߥ???ñ?̤ǻ??郎???ꤵ???롣 x, y ?????Фˤϡ????ꤷ?????????ɥ??θ??????Ф?????ɸ?ǥݥ??κ?ɸ ?????ꤵ?졢???Τ????롣
?֤???¶
??Ϣ????¶
XAnyEvent(3X11), XIfEvent(3X11), XNextEvent(3X11),
XPutBackEvent(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |