geo::Rect Class Reference

#include <rect.h>

Inherited by mup::Rect.

List of all members.

Public Member Functions

 Rect (int x, int y, int w, int h)
 Rect ()
virtual ~Rect ()
int LeftEdge () const
int TopEdge () const
int Width () const
int Height () const
void SetLeftEdge (int v)
void SetTopEdge (int v)
void SetWidth (int v)
void SetHeight (int v)
Rect operator+ (Rect &r)

Protected Attributes

int m_x
int m_y
int m_w
int m_h


Detailed Description

A rectangle class with a couple of useful functions


Constructor & Destructor Documentation

geo::Rect::Rect ( int  x,
int  y,
int  w,
int  h 
)

Constructor that expects the metrics

Parameters:
x X-coordinate
y Y-coordinate
w Width
h Height

geo::Rect::Rect (  )  [inline]

Standart constructor

virtual geo::Rect::~Rect (  )  [inline, virtual]

Standart destructor

Reimplemented in mup::Rect.


Member Function Documentation

int geo::Rect::LeftEdge (  )  const

Asks for the X-coordinate

Returns:
Returns the value

int geo::Rect::TopEdge (  )  const

Asks for the Y-coordinate

Returns:
Returns the value

int geo::Rect::Width (  )  const

Asks for the width

Returns:
Returns the value

int geo::Rect::Height (  )  const

Asks for the height

Returns:
Returns the value

void geo::Rect::SetLeftEdge ( int  v  ) 

Sets the X-coordinate

Parameters:
v the value

void geo::Rect::SetTopEdge ( int  v  ) 

Sets the Y-coordinate

Parameters:
v the value

void geo::Rect::SetWidth ( int  v  ) 

Sets for the width

Parameters:
v the value

void geo::Rect::SetHeight ( int  v  ) 

Sets for the height

Parameters:
v the value

Rect geo::Rect::operator+ ( Rect r  ) 

Overloaded + operator, that sums all members

Parameters:
r the other rect
Returns:
the sum as Rect


Member Data Documentation

int geo::Rect::m_x [protected]

int geo::Rect::m_y [protected]

int geo::Rect::m_w [protected]

int geo::Rect::m_h [protected]


The documentation for this class was generated from the following files:
Generated on Wed Feb 21 21:50:47 2007 for Minup by  doxygen 1.5.1-p1