Scroll to navigation

XButtonEvent(3X11) XLIB FUNCTIONS XButtonEvent(3X11)

̾??

XButtonEvent, XKeyEvent, XMotionEvent - KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify ???٥??ȹ?¤??

??¤??

KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify ???٥??Ȥ??Ф??빽¤?Τ????Ƥ򼨤???

typedef struct {
	int type;	
	unsigned long serial;	
	Bool send_event;	
	Display *display;	
	Window window;	
	Window root;	
	Window subwindow;	
	Time time;	
	int x, y;	
	int x_root, y_root;	
	unsigned int state;	
	unsigned int button;	
	Bool same_screen;	
} XButtonEvent;
typedef XButtonEvent XButtonPressedEvent;
typedef XButtonEvent XButtonReleasedEvent;


typedef struct {
	int type;	
	unsigned long serial;	
	Bool send_event;	
	Display *display;	
	Window window;	
	Window root;	
	Window subwindow;	
	Time time;	
	int x, y;	
	int x_root, y_root;	
	unsigned int state;	
	unsigned int keycode;	
	Bool same_screen;	
} XKeyEvent;
typedef XKeyEvent XKeyPressedEvent;
typedef XKeyEvent XKeyReleasedEvent;


typedef struct {
	int type;	
	unsigned long serial;	
	Bool send_event;	
	Display *display;	
	Window window;	
	Window root;	
	Window subwindow;	
	Time time;	
	int x, y;	
	int x_root, y_root;	
	unsigned int state;	
	char is_hint;	
	Bool same_screen;	
} XMotionEvent;
typedef XMotionEvent XPointerMovedEvent;


???Υ??٥??Ȥ????????ä??Ȥ?????¤?ΤΥ????Фϰʲ??Τ褦?????ꤵ???Ƥ? ?롣

type ?????Фϥ??٥??Ȥη??????դ˼??̤?????????̾???Ǥ??롣 ?㤨?С?X ?????Ф????饤?????ȥ??ץꥱ?????????? GraphicsExpose ???٥??Ȥ????Τ????Ȥ???X ?????Ф? type ?????Ф? GraphicsExpose ?????ꤷ?? XGraphicsExposeEvent ??¤?Τ????롣 display ?????Фϥ??٥??Ȥ??ɤ߽Ф??줿?ǥ????ץ쥤?ؤΥݥ??󥿤Ǥ??롣 send_event ?????Фˤϡ????Υ??٥??Ȥ? SendEvent ?ץ??ȥ????ꥯ?????Ȥ??????????Ƥ????????? True ?????ꤵ???롣 serial ?????Фϥץ??ȥ????????Τ????륷?ꥢ???ֹ??????????ꤵ???롣 ?????????Ǿ?????16?ӥåȤ??鴰????32?ӥåȤ??ͤ˳?ĥ?????롣 window ?????Фˤϡ??ġ??륭?åȤΥǥ????ѥå????ˤȤäƺǤ??????? ???????ɥ??????ꤵ???롣

???????ι?¤?Τϼ??ζ??̤Υ????Ф????ġ? window, root, subwindow, time, x, y, x_root, y_root, state, same_screen. window ?????Фˤϥ??٥??Ȥ????????줿???????ɥ??????ꤵ?졢?????ϥ? ?٥??ȥ??????ɥ??Ȥ??ƻ??Ȥ????롣 ???˵??????????郎?????????Ƥ????¤ꡢ?????? X ?????Ф????٥??Ȥ????? ?˻Ȥ????????ɥ??Ǥ??롣 root ?????Фˤϡ????Υ??????ɥ??Υ롼?ȥ??????ɥ??????ꤵ???롣 x_root, y_root ?????Фˤϡ????٥??Ȼ????ˤ??????ݥ??󥿤κ?ɸ?????? ?????롣 ?????ϥ롼?ȥ??????ɥ??θ??????Ф??????к?ɸ??ɽ?????롣

same_screen ?????Фϥ??٥??ȥ??????ɥ??ȥ롼?ȥ??????ɥ???Ʊ???????꡼ ?????ˤ??뤫?ɤ????򼨤????Τǡ? True ?? False ?????ꤵ???롣 True ?ξ????ϡ????٥??ȥ??????ɥ??ȥ롼?ȥ??????ɥ???Ʊ???????꡼?????ˤ??롣 False ?ξ????ϡ????٥??ȥ??????ɥ??ȥ롼?ȥ??????ɥ??ϰۤʤ륹???꡼?????ˤ? ?롣

???Υ??????ɥ??????٥??ȥ??????ɥ??β??̥??????ɥ??Ǥ????С???¤?Τ? subwindow ?????Фˤϡ????Υ??????ɥ??Ǥ??륤?٥??ȥ??????ɥ??λҥ????? ?ɥ????뤤?ϸ??Υ??????ɥ????????Ǥ??륤?٥??ȥ??????ɥ??λҥ??????ɥ? ?????ꤵ???롣 ?????Ǥʤ??????ˤϡ?X ?????Ф? subwindow ?????Ф? None ?????ꤹ?롣 time ?????Фˤϡ????٥??Ȥ?ȯ?????????郎???ꤵ???롣???λ????ϥߥ? ??ñ?̤?ɽ?????롣

???٥??ȥ??????ɥ????롼?ȥ??????ɥ???Ʊ???????꡼?????ˤ??????硢x, y ?????Фˤϥ??٥??ȥ??????ɥ??θ????????????к?ɸ?????ꤵ???롣 ?????Ǥʤ??????ˤϡ?x, y ?ˤ? 0 ?????ꤵ???롣

state ?????Фϡ????٥???ľ???Υݥ??󥿤Υܥ????????ǥ??ե????????????? ??Ū???֤򼨤??? ?????ϥܥ????????ǥ??ե???????????1?İʾ??Υޥ????ͤΥӥåȤ??Ȥ????? ?¤????ä????ΤǤ??롣 ?ޥ????ͤˤϰʲ??Τ??Τ????롣 Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask.

??¤?ΤΤ??줾???ˤϡ??ܺ٤ʾ????򼨤??????Υ????Ф????롣 XKeyPressedEvent ??¤?Τ? XKeyReleasedEvent ??¤?Τξ????ϡ??????? keycode ?????ФǤ??롣 ???Υ????Фˤϡ??????ܡ??ɤ?ʪ????????ɽ?????ͤ????ꤵ???롣 ???Υ????????ɤϥ????ܡ??ɾ??Τɤ줫?Υ??????Ф???Ǥ?դ?ɽ???Ǥ??롣 (12.7 ?Ϥ? 16.1 ?Ϥ򻲾ȤΤ???)

XButtonPressedEvent ??¤?Τ? XButtonReleasedEvent ??¤?Τξ????ϡ??????? button ?????ФǤ??롣 ?????Ͼ??֤??Ѳ??????ܥ?????ɽ?????Τǡ? Button1, Button2, Button3, Button4, Button5 ?Τ????줫???ͤ????롣 XPointerMovedEvent ??¤?Τξ????ϡ??????? is_hint ?????ФǤ??롣 ???Υ????Фˤ? NotifyNormal ???뤤?? NotifyHint ?????ꤵ???롣

??Ϣ????

XAnyEvent(3X11), XCreateWindowEvent(3X11), XCirculateEvent(3X11), XCirculateRequestEvent(3X11), XColormapEvent(3X11), XConfigureEvent(3X11), XConfigureRequestEvent(3X11), XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XErrorEvent(3X11), XExposeEvent(3X11), XFocusChangeEvent(3X11), XGraphicsExposeEvent(3X11), XGravityEvent(3X11), XKeymapEvent(3X11), XMapEvent(3X11), XMapRequestEvent(3X11), XPropertyEvent(3X11), XReparentEvent(3X11), XResizeRequestEvent(3X11), XSelectionClearEvent(3X11), XSelectionEvent(3X11), XSelectionRequestEvent(3X11), XUnmapEvent(3X11), XVisibilityEvent(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11