Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XPropertyEvent(3X11) — NEWS-os 4.1C

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)

XFocusChangeEvent(3X11)

XGetWindowProperty(3X11)

XGraphicsExposeEvent(3X11)

XGravityEvent(3X11)

XKeymapEvent(3X11)

XMapEvent(3X11)

XMapRequestEvent(3X11)

XReparentEvent(3X11)

XResizeRequestEvent(3X11)

XSelectionClearEvent(3X11)

XSelectionEvent(3X11)

XSelectionRequestEvent(3X11)

XUnmapEvent(3X11)

XVisibilityEvent(3X11)

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

イベント

XPropertyEvent − PropertyNotifyイベント構造体

構造体

PropertyNotify イベントの構造体は、以下の様になります。

typedef struct {
int type;/∗ PropertyNotify ∗/
unsigned long serial;/∗ サーバが最後に処理したリクエストの通し番号 ∗/
Bool send_event;/∗ SendEventリクエストからであれば、true ∗/
Display ∗display;/∗ イベントが読まれたディスプレイ ∗/
Window window;
Atom atom;
Time time;
int state;/∗ PropertyNewValueまたはPropertyDeleted ∗/
} XPropertyEvent;

上記のイベントを受信すると、 構造体のメンバは以下の様に設定されます。 typeメンバは唯一無二のイベントタイプの定数名に設定されます。 例えば、Xサーバが GraphicsExpose イベントをアプリケーションに通知すると、 typeメンバが GraphicsExpose である XGraphicsExposeEvent 構造体を送ります。 displayメンバはイベントが読まれたディスプレイへのポインタに設定されます。 send_eventメンバはイベントが SendEvent プロトコルリクエストからであれば、 True に設定されます。 serialメンバはプロトコルで通知された通し番号から設定されますが、 16ビットの最下位ビットデータから完全32ビットデータに拡張されます。 windowメンバはツールキットのディスパチャに最適のに設定されます。 windowメンバは属性が変更されたウィンドウに設定されます。 atomメンバは属性のatomに設定され、 属性が変更または変更要求されたことを示します。 timeメンバは属性が変更されたサーバの時間に設定されます。 stateメンバは属性が新しい値に変更されたのか、 それとも削除されたのを示す為に設定され、 PropertyNewValue または PropertyDelete になります。 stateメンバは、 XChangeProperty または XRotateWindowProperties を使ってウィンドウの属性が変更された場合 (XChangeProperty を使ってデータ長0のデータを付加する場合でも)、 そして XChangeProperty または XRotateWindowProperties を使って属性の1部または全てのデータを同等の内容に交換した場合にも PropertyNewValue に設定されます。 stateメンバは XDeleteProperty を使ってウィンドウの属性が削除された場合、 PropertyDelete に設定されます。 引数deleteが True であれば、 XGetWindowProperty となります。

関連事項

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

NEWS-OSRelease 4.1C

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