14.1.3 Setting and Reading Text Properties

Xlib provides two functions that you can use to set and read the text properties for a given window. You can use these functions to set and read those properties of type TEXT (WM_NAME, WM_ICON_NAME, WM_COMMAND, and WM_CLIENT_MACHINE). In addition, Xlib provides separate convenience functions that you can use to set each of these properties. For further information about these convenience functions, see sections "Setting and Reading the WM_NAME Property", "Setting and Reading the WM_ICON_NAME Property", "Setting and Reading the WM_COMMAND Property", and "Setting and Reading the WM_CLIENT_MACHINE Property", respectively.
Xlib には指定されたウィンドウのテキストプロパティの設定と取得を行うための関数が 2 つ用意されている。 これらの関数を使って TEXT 型 ( WM_NAME, WM_ICON_NAME, WM_COMMAND, and WM_CLIENT_MACHINE )のプロパティの設定と取得を行える。 さらに、Xlib にはこれらの属性を設定できる別々の簡易関数が用意されている。 これらの簡易関数に関する情報については "Setting and Reading the WM_NAME Property", "Setting and Reading the WM_ICON_NAME Property", "Setting and Reading the WM_COMMAND Property", "Setting and Reading the WM_CLIENT_MACHINE Property" を参照すること。

To set one of a window's text properties, use XSetTextProperty().
ウィンドウのテキストプロパティの一つを設定するには XSetTextProperty() を使う。

To read one of a window's text properties, use XGetTextProperty().
ウィンドウのテキストプロパティの一つを取得するには XGetTextProperty() を使う。

Next: Setting and Reading the WM_NAME Property

Christophe Tronche, ch.tronche@computer.org