XGeometry

This function has been superseded by XWMGeometry().

Syntax

int XGeometry(display, screen, position, default_position, bwidth, fwidth, fheight, xadder, 
                  yadder, x_return, y_return, width_return, height_return)
      Display *display;
      int screen;
      char *position, *default_position;	
      unsigned int bwidth;
      unsigned int fwidth, fheight;	
      int xadder, yadder;	
      int *x_return, *y_return;
      int *width_return, *height_return;

Arguments

display Specifies the connection to the X server.
screen Specifies the screen.
position
default_position
Specify the geometry specifications.
bwidth Specifies the border width.
fheight
fwidth
Specify the font height and width in pixels (increment size).
xadder
yadder
Specify additional interior padding needed in the window.
x_return
y_return
Return the x and y offsets.
width_return
height_return
Return the width and height determined.

Description

You pass in the border width (bwidth), size of the increments fwidth and fheight (typically font width and height), and any additional interior space (xadder and yadder) to make it easy to compute the resulting size. The XGeometry() function returns the position the window should be placed given a position and a default position. XGeometry() determines the placement of a window using a geometry specification as specified by XParseGeometry() and the additional information about the window. Given a fully qualified default geometry specification and an incomplete geometry specification, XParseGeometry() returns a bitmask value as defined above in the XParseGeometry() call, by using the position argument.

The returned width and height will be the width and height specified by default_position as overridden by any user-specified position. They are not affected by fwidth, fheight, xadder, or yadder. The x and y coordinates are computed by using the border width, the screen width and height, padding as specified by xadder and yadder, and the fheight and fwidth times the width and height from the geometry specifications.

See also

"Compatibility Functions".
Christophe Tronche, ch@tronche.com