Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XFocusChangeEvent(3X11) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XAnyEvent(3X11)

XButtonEvent(3X11)

XCreateWindowEvent(3X11)

XCirculateEvent(3X11)

XCirculateRequestEvent(3X11)

XColormapEvent(3X11)

XConfigureEvent(3X11)

XConfigureRequestEvent(3X11)

XCrossingEvent(3X11)

XDestroyWindowEvent(3X11)

XErrorEvent(3X11)

XExposeEvent(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)

XFocusChangeEvent(3X11)  —  NEWS-OS Programmer’s Manual

名称

XFocusChangeEvent − FocusIn および FocusOut イベント構造体

構造体

FocusIn および FocusOut イベントの構造体は、以下の様になります。

typedef struct {
int type;/∗ FocusIn または FocusOut ∗/
unsigned long serial;/∗ サーバが最後に処理したリクエストの通し番号 ∗/
Bool send_event;/∗ SendEvent リクエストからであれば、true ∗/
Display ∗display;/∗ イベントが読まれたディスプレイ ∗/
Window window;/∗ イベント発生のウィンドウ ∗/
int mode;/∗ NotifyNormal、NotifyGrab、NotifyUngrab ∗/
int detail;
/∗
∗ NotifyAncestor, NotifyVirtual,
∗ NotifyInferior, NotifyNonlinear,
∗ NotifyNonlinearVirtual, NotifyPointer,
∗ NotifyPointerRoot, NotifyDetailNone
∗/
} XFocusChangeEvent;
typedef XFocusChangeEvent XFocusInEvent;
typedef XFocusChangeEvent XFocusOutEvent;

上記のイベントを受信した場合、構造体のメンバは以下の様に設定されます。 type メンバは唯一無二の名称であるイベントタイプの定数名に設定されます。 例えば、 X サーバが GraphicsExpose イベントをアプリケーションに通知した場合、 type メンバが GraphicsExpose である XGraphicsExposeEvent 構造体を送ります。 display メンバはイベントが読まれたディスプレイへのポインタに設定されます。 send_event メンバはイベントが SendEvent プロトコルリクエストからであれば True に設定されます。 serial メンバがプロトコルで通知された通し番号から設定されますが、 16 ビットの最下位ビットデータから完全 32 ビットデータに拡張されます。 window メンバはツールキットのディスパッチャに最適のウィンドウに設定されます。 window メンバは FocusIn または FocusOut イベントが生成されたウィンドウに設定されます。 イベントを通知する際、 X サーバが使用するウィンドウです。 mode メンバはフォーカスイベントが単なるフォーカスイベント、 グラブされている時のフォーカスイベント、 グラブが有効時のフォーカス、 またはグラブが無効時のフォーカスイベントなのかを示す為に設定されます。 X サーバは mode メンバを NotifyNormal、 NotifyWhileGrabbed、 NotifyGrab、 または NotifyUngrab に設定出来ます。 ウィンドウアンマップによって引き起こされる全ての FocusOut イベントは、 UnmapNotify イベントの後でも生成されます。 ただし、 生成される EnterNotify、 LeaveNotify、 VisibilityNotify、 Expose イベントを考慮して、 FocusOut イベントを X サーバが要求しません。 イベントモードによって、 detail メンバは notify detail を示す為に設定され、 NotifyAncestor、 NotifyVirtual、 NotifyInferior、 NotifyNonlinear、 NotifyNonlinearVirtual、 NotifyPointer、 NotifyPointerRoot、 または NotifyDetailNone、 となります。

関連事項

XAnyEvent(3X11), XButtonEvent(3X11), XCreateWindowEvent(3X11), XCirculateEvent(3X11), XCirculateRequestEvent(3X11), XColormapEvent(3X11), XConfigureEvent(3X11), XConfigureRequestEvent(3X11), XCrossingEvent(3X11), XDestroyWindowEvent(3X11), XErrorEvent(3X11), XExposeEvent(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

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026