FrontPage > C/C++ > X11 > XEvent
Xlib.h内の構造体
typedef union _XEvent { | ||
int | type; | /* イベント・タイプ */ |
XAnyEvent | xany; | /* イベント共通変数の構造体 */ |
XKeyEvent | xkey; | /* キーボード (KeyPress, KeyRelease) */ |
XButtonEvent | xbutton; | /* マウス (ButtonPress, ButtonRelease) */ |
XMotionEvent | xmotion; | /* マウス移動 (MotionNotify) */ |
XCrossingEvent | xcrossing; | /* マウス・フォーカス (EnterNotify,LeaveNotify) */ |
XFocusChangeEvent | xfocus; | /* キーボード・フォーカス (FocusIn, FocusOut) */ |
XExposeEvent | xexpose; | /* グラフィック再描画 (Expose) */ |
XGraphicsExposeEvent | xgraphicsexpose; | /* グラフィック[ソースコピー領域利用NG] (GraphicsExpose) */ |
XNoExposeEvent | xnoexpose; | /* グラフィック[ソースコピー領域利用OK] (NoExpose) */ |
XVisibilityEvent | xvisibility; | /* Window可視/不可視状態変更 (VisibilityNotify) */ |
XCreateWindowEvent | xcreatewindow; | /* Window生成 (CreateNotify) */ |
XDestroyWindowEvent | xdestroywindow; | /* Window破棄 (DestroyNotify) */ |
XUnmapEvent | xunmap; | /* Windowアンマップ (UnmapNotify) */ |
XMapEvent | xmap; | /* Windowマップ (MapNotify) */ |
XMapRequestEvent | xmaprequest; | /* Windowマップ要求 (MapRequest) */ |
XReparentEvent | xreparent; | /* 親Window変更 (ReparentNotify) */ |
XConfigureEvent | xconfigure; | /* Window構成変更 (ConfigureNotify) */ |
XGravityEvent | xgravity; | /* (GravityNotify) */ |
XResizeRequestEvent | xresizerequest; | /* Windowサイズ変更要求 (ResizeRequest) */ |
XConfigureRequestEvent | xconfigurerequest; | /* Window構成変更要求 (ConfigureRequest) */ |
XCirculateEvent | xcirculate; | /* Windowスタック変更 (CirculateNotify) */ |
XCirculateRequestEvent | xcirculaterequest; | /* Windowスタック変更要求 (CirculateRequest) */ |
XPropertyEvent | xproperty; | /* Windowプロパティ変更 (PropertyNotify) */ |
XSelectionClearEvent | xselectionclear; | /* (SelectionClear) */ |
XSelectionRequestEvent | xselectionrequest; | /* (SelectionRequest) */ |
XSelectionEvent | xselection; | /* (SelectionNotify) */ |
XColormapEvent | xcolormap; | /* カラーマップ変更 (ColormapNotify) */ |
XClientMessageEvent | xclient; | /* (ClientMessage) */ |
XMappingEvent | xmapping; | /* XSendEventイベント受信 (MappingNotify) */ |
XErrorEvent | xerror; | |
XKeymapEvent | xkeymap; | /* キーボード・マップ変更(KeymapNotify) */ |
long | pad[24]; | |
} XEvent; |
NoEventMask No events wanted KeyPressMask キーボードのキーを押した。 KeyReleaseMask キーボードのキーを離した。 ButtonPressMask マウスのボタンを押した。 ButtonReleaseMask マウスのボタンを離した。 EnterWindowMask マウスがWindow内の入った。 LeaveWindowMask マウスがWindow外へ移動した。 PointerMotionMask マウスの移動した。 PointerMotionHintMask Pointer motion hints wanted Button1MotionMask マウスのボタン1を押しながらドラッグ。 Button2MotionMask マウスのボタン2を押しながらドラッグ。 Button3MotionMask マウスのボタン3を押しながらドラッグ。 Button4MotionMask マウスのボタン4を押しながらドラッグ。 Button5MotionMask マウスのボタン5を押しながらドラッグ。 ButtonMotionMask マウスのボタンを押しながらドラッグ。 KeymapStateMask Keyboard state wanted at window entry and focus in ExposureMask Windowの描画要求。 VisibilityChangeMask Windowの可視/不可視状態が変わった。 StructureNotifyMask Windowの状態が変化した。(Map, Unmap, Destroy含む) ResizeRedirectMask Windowのサイズ変化した。 SubstructureNotifyMask Substructure notification wanted SubstructureRedirectMask Redirect structure requests on children FocusChangeMask フォーカス状態が変わった。 PropertyChangeMask Windowのプロパティの状態が変わった。 ColormapChangeMask カラーマップが状態が変わった。 OwnerGrabButtonMask Automatic grabs should activate with owner_events set to True
KeyPress | (2) | キーボードのキーの押下。 |
KeyRelease | (3) | キーボードのキーの解放。 |
ButtonPress | (4) | マウス・ボタンの押下。 |
ButtonRelease | (5) | マウス・ボタンの解放。 |
MotionNotify | (6) | マウスが移動した。 |
EnterNotify | (7) | マウス・ポインタがWindow内に入った。 |
LeaveNotify | (8) | マウス・ポインタがWindow外に出た。 |
FocusIn | (9) | キーボード・フォーカスを得た。 |
FocusOut | (10) | キーボード・フォーカスを失った。 |
KeymapNotify | (11) | キーボードの全状態を検知した。 |
Expose | (12) | Window面が露出した。 |
GraphicsExpose | (13) | コピー時コピーソースが利用出来なかった。 |
NoExpose | (14) | コピー時コピーソースが利用出来た。 |
VisibilityNotify | (15) | Windowの可視/不可視状態が変わった。 |
CreateNotify | (16) | Windowが生成された。 |
DestroyNotify | (17) | Windowが破棄された。 |
UnmapNotify | (18) | Windowがアンマップ(Unmap)された。 |
MapNotify | (19) | Windowがマップ(Map)された。 |
MapRequest | (20) | Windowのマップ要求があった。 |
ReparentNotify | (21) | 親Windowが別のWindowになった。 |
ConfigureNotify | (22) | Window構成が変わった。 |
ConfigureRequest | (23) | Window構成の変更要求があった。 |
GravityNotify | (24) | 親Windowのサイズ変更等により移動した。 |
ResizeRequest | (25) | Windowのサイズの変更要求があった。 |
CirculateNotify | (26) | Windowのスタックが回った。 |
CirculateRequest | (27) | Windowのスタックが回転要求があった。 |
PropertyNotify | (28) | Windowのプロパティが変わった。 |
SelectionClear | (29) | セレクションの所有権を失った。 |
SelectionRequest | (30) | セレクションの変換要求があった。 |
SelectionNotify | (31) | セレクションの変換が完了した。 |
ColormapNotify | (32) | カラーマップが変わった。 |
ClientMessage | (33) | XSendEvent関数からイベントを受け取った。 |
MappingNotify | (34) | キーボードのマップ状態が変わった。 |
LASTEvent | (35) | (最終イベント) |