X11workbench 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' and 'unsigned int' for the various parameter is consistent with the various 'Geom' functions, which typically use 'int *' for returned parameters, as shown:

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 527 of file window_helper.h.

Field Documentation

◆ border

unsigned int border

border width of geometry

Definition at line 533 of file window_helper.h.

◆ height

unsigned int height

height of geometry

Definition at line 532 of file window_helper.h.

◆ width

unsigned int width

width of geometry

Definition at line 531 of file window_helper.h.

◆ x

int x

X coordinate for geometry upper left corner (excluding border)

Definition at line 529 of file window_helper.h.

◆ y

int y

Y coordinate for geometry upper left corner (excluding border)

Definition at line 530 of file window_helper.h.


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