XGetWindowAttributes(3X11) — UNIX Programmer’s Manual
名称
XGetWindowAttributes, XGetGeometry − 現在のウィンドウの属性またはジオメトリを問合わせる
形式
Status XGetWindowAttributes(display, w, window_attributes_return)
Display ∗display;
Window w;
XWindowAttributes ∗window_attributes_return; Status XGetGeometry(display, d, root_return, x_return, y_return, width_return,
height_return, border_width_return, depth_return)
Display ∗display;
Drawable d;
Window ∗root_return;
int ∗x_return, ∗y_return;
unsigned int ∗width_return, ∗height_return;
unsigned int ∗border_width_return;
unsigned int ∗depth_return;
引数
border_width_return
ボーダをピクセル単位で返します。
ddrawable を指定します。これは、ウィンドウであるかまたはピクスマップであることがあります。
depth_returndrawable の深さを返します ( オブジェクトの 1 ピクセルについての ビット ) 。
displayX サーバへのコネクションを指定します。
root_returnルートウィンドウを返します。
w現在の属性を選びたいウィンドウを指定します。
width_return
height_return
drawable のサイズ ( 幅と高さ ) を返します。
window_attributes_return
XWindowAttributes 構造体の指定されたウィンドウの属性を返します。
x_return
y_returndrawable の位置を定義する x - y 座標を返します。 ウィンドウの場合、 これらの座標は、親の原点に対する左上外側コーナを指定します。 ピックスマップの場合、これらの座標は必ず 0 です。
解説
XGetWindowAttributes 関数は、 XWindowAttributes 構造体に、指定されたウィンドウの現在の属性を返します。 .PN XGetWindowAttributes 関数は、 BadDrawable および BadWindow エラーを生じることがあります。 XGetGeometry 関数は、 drawable のルートウィンドウおよび現在のジオメトリを返します。 drawable のジオメトリには、 x - y 座標、幅と高さ、ボーダ幅および 深さが含まれます。 これらについては、引数リストで説明します。 この関数に、クラスが InputOnly であるウィンドウを渡すのは適正です。
診断
BadDrawable
Drawable 引数の値が定義された Window または Pixmap を指さない。
BadWindow
Window 引数の値が、定義された Window を指さない。
関連事項
XQueryPointer(3X11), XQueryTree(3X11)
Xlib − C Language X Interface
NEWS-OSRelease 3.3