ui::util::Rectangle Class Reference

Collaboration diagram for ui::util::Rectangle:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class representation of a 2d rectangular space.


Public Member Functions

 Rectangle (int xPoint, int yPoint, int w, int h)
 Rectangle ()
 Rectangle (const Rectangle &rhs)
void swap (Rectangle &rhs)
 ~Rectangle ()
Rectangleoperator= (const Rectangle &rhs)
bool contains (int xPoint, int yPoint)
bool contains (const Point &point)
bool operator== (const Rectangle &rhs)

Public Attributes

int x
int y
int width
int height


Constructor & Destructor Documentation

ui::util::Rectangle::Rectangle int  xPoint,
int  yPoint,
int  w,
int  h
 

Creates a new Rectangle with specified parameters.

ui::util::Rectangle::Rectangle  ) 
 

Default constructor

ui::util::Rectangle::Rectangle const Rectangle rhs  ) 
 

Copy constructor

ui::util::Rectangle::~Rectangle  ) 
 

Default destructor


Member Function Documentation

Rectangle & ui::util::Rectangle::operator= const Rectangle rhs  ) 
 

Assignment operator

bool ui::util::Rectangle::contains int  xPoint,
int  yPoint
 

Checks wether the given point lies in this Rectangle.

bool ui::util::Rectangle::contains const Point point  ) 
 

Checks wether the given point lies in this Rectangle.

bool ui::util::Rectangle::operator== const Rectangle rhs  ) 
 

Compare two Rectangles.


Generated on Mon Jun 20 19:42:07 2005 for UI by doxygen 1.3.1 using KingsTools