Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XGetWAttr(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XQueryPointer(3X)

XQueryTree(3X)

XGetWindowAttributes(3X)  —  X Version 11

NAME

XGetWindowAttributes, XGetGeometry − get current window attribute or geometry

SYNTAX

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;

ARGUMENTS

border_width_return
Returns the border width in pixels.

dSpecifies the drawable. 

depth_returnReturns the depth of the pixmap (bits per pixel for the object). 

displaySpecifies the connection to the X server. 

root_returnReturns the root window ID for the specified window. 

wSpecifies the window ID. 

width_return

height_return
Returns the drawable’s dimensions (width and height).

window_attributes_return
Returns the specified window’s attributes in the XWindowAttributes structure.

x_return

y_returnReturns the x and y coordinates of the drawable.  These coordinates define the location of the drawable.  For a window, these coordinates specify the upper left outer corner relative to its parent’s origin.  For pixmaps, these coordinates are always zero. 

DESCRIPTION

The XGetWindowAttributes function returns the current attributes for the specified window to an XWindowAttributes structure.

The XGetGeometry function returns the root ID and the current geometry of the drawable. .PN XGetGeometry can generate a BadDrawable error.

DIAGNOSTICS

BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.

BadWindow A value for a Window argument does not name a defined Window. 

SEE ALSO

XQueryPointer(3X), XQueryTree(3X)
Xlib − C Language X Interface

1 March 1988

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