EW_Rectangle

EW_Rectangle

ew

1998 12-05


CLASS

EW_Rectangle - general purpose bounding box


SYNOPSIS

Class EW_Rectangle is the fundamental rectangular geometry: an origin and size.


PUBLIC MEMBER FUNCTIONS



virtual void SetOrigin(long x,long y)

void GetOrigin(long *x,long *y)
Set/Get the lower left position of the rectangle.



virtual void SetSize(long w,long h)

void GetSize(long *w,long *h)
Set/Get the size of the rectangle.



virtual void SetGeometry(long x, long y, long w, long h)

void GetGeometry(long *x,long *y,long *w,long *h)
Set/Get the position and size of the rectangle in one call.



void CopyFrom(EW_Rectangle *other)
Copy the geometry from the specified other rectangle.


FILES

ew/region.h Rectangular region header file


SEE ALSO

EW_intro(3), EW_Node(3)