X11workbench Toolkit  1.0
_WBRect_ Struct Reference

internal wrapper struct for 'rectangle' definition More...

#include <window_helper.h>

Data Fields

int left
 
int top
 
int right
 
int bottom
 

Detailed Description

internal wrapper struct for 'rectangle' definition

The rectangle structure has been defined primarily for convenience, so that specific coding methods that work well in GUI environments that use rectangles (instead of 'geometry') can easily be ported into this environment.

typedef struct _WBRect_
{
int left, top, right, bottom;

Note that this is different from an XRectangle structure, which is defined as

typedef struct
{
short x, y;
unsigned short width, height;
} XRectangle;

Definition at line 481 of file window_helper.h.

Field Documentation

◆ bottom

int bottom

Y coordinate for rectangle lower right corner

Definition at line 486 of file window_helper.h.

◆ left

int left

X coordinate for rectangle upper left corner

Definition at line 483 of file window_helper.h.

◆ right

int right

X coordinate for rectangle lower right corner

Definition at line 485 of file window_helper.h.

◆ top

int top

Y coordinate for rectangle upper left corner

Definition at line 484 of file window_helper.h.


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