Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ GetGeom(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XGetGeometry — obtain the current geometry of drawable. 

SYNOPSIS

Status XGetGeometry(display, drawable, root_return, x_return, y_return, width_return, height_return, border_width_return, depth_return)  Display ∗display;  Drawable drawable;  Window ∗root_return;  int ∗x_return, ∗y_return;  unsigned int ∗width_return, ∗height_return;  unsigned int ∗border_width_return;  unsigned int ∗depth_return;

ARGUMENTS

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

drawableSpecifies the drawable, either a window or a pixmap. 

root_returnReturns the root window ID of the specified window. 

x_return

y_returnReturn the coordinates of the upper-left pixel of the window’s border, relative to its parent’s origin.  For pixmaps, these coordinates are always zero. 

width_return

height_return
Return the dimensions of the drawable. For a window, these return the inside size (not including the border).

border_width_return
Returns the borderwidth, in pixels, of the window’s border, if the drawable is a window. Returns zero if the drawable is a pixmap.

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

RETURNS

Zero on failure, non-zero on success. 

DESCRIPTION

This function gets the current geometry of a drawable, plus the ID of the root window of the screen the window is on.  It is legal to pass to this function on InputOnly window. 

XGetGeometry() returns a Status of zero on failure, or non-zero on success. 

ERRORS

BadDrawable

SEE ALSO

XConfigureWindow(), XGetWindowAttributes(), XMoveResizeWindow(), XMoveWindow(), XResizeWindow(). 

Xlib Reference Manual

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