X11 Work Bench Toolkit  1.0
_WBGeom_ Struct Reference

internal wrapper struct for X11 'geometry' definition More...

#include <window_helper.h>

Data Fields

int x
 
int y
 
unsigned int width
 
unsigned int height
 
unsigned int border
 

Detailed Description

internal wrapper struct for X11 'geometry' definition

The geometry structure is a wrapper for the X11 functions that specify the individual parameters for a geometry, such as XGetGeometry. Instead of passing 5 integers, you pass the pointer to a structure for the X11workbench API functions. This provides many advantages over the 'individual parameter' method as well as providing a structure for cacheing geometry information.

typedef struct _WBGeom_
{
int x, y;
unsigned int width, height, border;

Use of 'int' for each parameter is consistent with the various 'Geom' functions which typically use 'int *' for returned parameters, such as:

Status XGetGeometry(Display *display, Drawable d, Window *root_return,
int *x_return, int *y_return,
unsigned int *width_return, unsigned int *height_return,
unsigned int *border_return, unsigned int *depth_return);

Definition at line 258 of file window_helper.h.

Field Documentation

unsigned int border

border width of geometry

Definition at line 264 of file window_helper.h.

unsigned int height

height of geometry

Definition at line 263 of file window_helper.h.

unsigned int width

width of geometry

Definition at line 262 of file window_helper.h.

int x

X coordinate for geometry upper left corner (excluding border)

Definition at line 260 of file window_helper.h.

int y

Y coordinate for geometry upper left corner (excluding border)

Definition at line 261 of file window_helper.h.


The documentation for this struct was generated from the following file: