mup::Rect Class Reference

#include <mup_rect.h>

Inherits geo::Rect.

List of all members.

Public Member Functions

virtual ~Rect ()
void Center (geo::Rect &container)
bool Contains (int x, int y) const
SDL_Rect ToSDLRect () const


Detailed Description

A rectangle class especially for minup


Constructor & Destructor Documentation

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

Standart destructor

Reimplemented from geo::Rect.


Member Function Documentation

void mup::Rect::Center ( geo::Rect container  ) 

Centers the rectangle relativly

Parameters:
container the rectangle to that the rectangle will be centered

bool mup::Rect::Contains ( int  x,
int  y 
) const

Checks if a point is in the rectangle

Parameters:
x the X-coordinate
y the Y-coordinate
Returns:
a boolean value that indicates wether the point is in the rectangle or not

SDL_Rect mup::Rect::ToSDLRect (  )  const

Converts the rectangle to an SDL compatible rectangle

Returns:
return the SDL compatible rectangle


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