ubit::URegion Struct Reference

[Impl] Rectangular Region. More...

#include <ugeom.hpp>

Inheritance diagram for ubit::URegion:

ubit::UView ubit::UPaneView ubit::UScrollbarView ubit::UTableView List of all members.

Public Member Functions

 URegion (int _x, int _y, int _w, int _h)
void set (const URegion &r)
void set (int _x, int _y, int _w, int _h)
bool inter (const URegion &rect2)
bool inter (int x, int y, int w, int h)
 returns the intersection with the rectangle that is given as an argument.
void closure (const URegion &rect2)
void closure (int x, int y, int w, int h)
 returns the union with the rectangle that is given as an argument.

Public Attributes

int x
int y
int width
int height

Detailed Description

[Impl] Rectangular Region.


Member Function Documentation

void ubit::URegion::closure ( int  x,
int  y,
int  w,
int  h 
)

returns the union with the rectangle that is given as an argument.

this function modifies this but leaves rect2 unchanged. Note: empty regions are not taken into account.

bool ubit::URegion::inter ( int  x,
int  y,
int  w,
int  h 
)

returns the intersection with the rectangle that is given as an argument.

this function modifies this but leaves rect2 unchanged. renvoie:


The documentation for this struct was generated from the following files:
Generated on Mon Jan 29 00:20:50 2007 for Ubit by  doxygen 1.4.7