4.4 Obtaining and Changing Window Properties

You can attach a property list to every window. Each property has a name, a type, and a value (see "Properties and Atoms"). The value is an array of 8-bit, 16-bit, or 32-bit quantities, whose interpretation is left to the clients. The type char is used to represent 8-bit quantities, the type short is used to represent 16-bit quantities, and the type long is used to represent 32-bit quantities.
全てのウィンドウにプロパティリストを取り付ける事ができる。 それぞれのプロパティは名前、型、値を持つ。 ("Properties and Atoms"参照) 値は 8bit, 16bit, 32bit 単位の配列であり、 これらの値の解釈はクライアントに任させる。型 char は 8bit 単位に対して使われ、型 short は16bit単位に対して使われ、型 long は32bit単位に対して使われる。

Xlib provides functions that you can use to obtain, change, update, or interchange window properties. In addition, Xlib provides other utility functions for inter-client communication (see "Inter-Client Communication Functions").
Xlib はウィンドウプロパティを変更、更新、置き換えることができる関数を与える。 更に XLib はクライアント間通信のためのユーティリティ関数を与える。 ("Inter-Client Communication Functions"参照)

To obtain the type, format, and value of a property of a given window, use XGetWindowProperty().
与えれたウィンドウのプロパティの型、フォーマット、値を得るには XGetWindowProperty() を使う。

To obtain a given window's property list, use XListProperties().
与えられたウィンドウのプロパティリストを得るには XListProperties() を使う。

To change a property of a given window, use XChangeProperty().
与えられたウィンドウのプロパティを変更するには XChangeProperty() を使う。

To rotate a window's property list, use XRotateWindowProperties().
ウィンドウのプロパティリストをローケートするには XRotateWindowProperties() を使う。

To delete a property on a given window, use XDeleteProperty().
与えられたウィンドウのプロパティを削除するには XDeleteProperty() を使う。

Next: Selections

Christophe Tronche, ch.tronche@computer.org