#include <mup_rect.h>
Inherits geo::Rect.
Public Member Functions | |
| virtual | ~Rect () |
| void | Center (geo::Rect &container) |
| bool | Contains (int x, int y) const |
| SDL_Rect | ToSDLRect () const |
| virtual mup::Rect::~Rect | ( | ) | [inline, virtual] |
Standart destructor
Reimplemented from geo::Rect.
| void mup::Rect::Center | ( | geo::Rect & | container | ) |
Centers the rectangle relativly
| 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
| x | the X-coordinate | |
| y | the Y-coordinate |
| SDL_Rect mup::Rect::ToSDLRect | ( | ) | const |
Converts the rectangle to an SDL compatible rectangle
1.5.1-p1