Xlib provides a number of standard properties and programming interfaces
that are ICCCM compliant.
The predefined atoms for some of these properties are defined in the
X11/Xatom.h
header file, where
to avoid name conflicts with user symbols their
name has an XA_ prefix.
For further information about atoms and properties,
see section "Properties and Atoms".
Xlib には ICCM 準拠のたくさんの標準プロパティや
プログラミングインタフェースが用意されている。
これらのプロパティのために予め定義されているアトムは
<X11/Xatom.h>で定義されている。また、ユーザ定義のシンボルとの衝突を避けるために
#defineで定義された名前には XA_ というプレフィックスが付けられている。
アトムとプロパティの詳しい説明については 4.3 節を参照すること。
Xlib's selection and cut buffer mechanisms provide the primary programming
interfaces by which peer client applications communicate with each other
(see sections "Selections" and "Using Cut Buffers").
The functions discussed in this chapter provide
the primary programming interfaces by which client applications communicate
with their window and session managers as well as share standard colormaps.
Xlib のセレクション機構とカットバッファ機構は、ピアクラアイント
アプリケーションが他のピアクライアントアプリケーションとお互いに通信す
るための主なプログラミングインタフェースを提供する。
この章で説明する関数は、クライアントアプリケーションがウィンドウマネージャ
やセッションマネージャと通信するためや、標準カラーマップを共有するため
の主なプログラミングインタフェースを提供する。
The standard properties that are of special interest for communicating
with window and session managers are:
ウィンドウマネージャやセッションマネージャと通信と特に関連がある
標準プロパティを以下に示す:
Name | Type | Format | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
WM_CLASS | STRING 8 | Set by application programs to allow window and session
managers to obtain the application's resources from the resource database. | ウィンドウマネージャやセッションマネージャがリソースデータベースからアプリケーションのリソースを取得することを許可するためにアプリケーションプログラムが設定する。 WM_CLIENT_MACHINE | TEXT | | The string name of the machine on which the client application is running. | クライアントアプリケーションが動作しているマシンの名前を示す文字列。 WM_COLORMAP_WINDOWS | WINDOW | 32 | The list of window IDs that may need a different colormap
than that of their top-level window. | ウィンドウ ID のリスト。トップレベルウィンドウと異なるカラーマップを必要とするかもしれないウィンドウを示す。 WM_COMMAND | TEXT | | The command and arguments, null-separated, used to invoke the
application. | アプリケーションの起動に使われたコマンドと引き数。要素は NULL で区切る。 WM_HINTS | WM_HINTS | 32 | Additional hints set by the client for use by the window manager.
The C type of this property is XWMHints. | ウィンドウマネージャに使わせるためにクライアントが設定した追加のヒント。このプロパティの C 言語での型はXWMHintsである。 WM_ICON_NAME | TEXT | | The name to be used in an icon. | アイコンで使われる名前。 WM_ICON_SIZE | WM_ICON_SIZE | 32 | The window manager may set this property on the root window to
specify the icon sizes it supports.
The C type of this property is XIconSize. | 対応しているアイコンのサイズを指定するために、ウィンドウマネージャはこのプロパティをルートウィンドウに設定することがある。このプロパティの C 言語での型はXIconSizeである。 WM_NAME | TEXT | | The name of the application. | アプリケーションの名前。 WM_NORMAL_HINTS | WM_SIZE_HINTS | 32 | Size hints for a window in its normal state.
The C type of this property is XSizeHints. | 通常の状態でのウィンドウのサイズに関するヒント。このプロパティの C 言語での型はXSizeHintsである。 WM_PROTOCOLS | ATOM | 32 | List of atoms that identify the communications protocols between the
client and window manager in which the client is willing to participate. | クライアントとウィンドウマネージャの間の通信プロトコルのうち、クライアントが参加できるものを示すアトムのリスト。 WM_STATE | WM_STATE | 32 | Intended for communication between window and session managers only. | ウィンドウマネージャとセッションマネージャの間の通信だけで使うことが想定されている。 WM_TRANSIENT_FOR | WINDOW | 32 | Set by application programs to indicate to the window manager that a transient
top-level window, such as a dialog box. | ダイアログボックスのような一時的なトップウィンドウをウィンドウマネージャに示すためにアプリケーションプログラムが設定する。 |
The remainder of this chapter discusses:
この章の以降で説明するのは以下の内容である: