#include <rectangle.h>
gcn::Rectangle::Rectangle |
( |
| ) |
|
Constructor. Resets member variables.
gcn::Rectangle::Rectangle |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
bool gcn::Rectangle::intersect |
( |
const Rectangle & |
rectangle | ) |
|
bool gcn::Rectangle::intersect |
( |
const Rectangle & |
rectangle | ) |
const |
|
inline |
bool gcn::Rectangle::isPointInRect |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
Checks if a point is inside the Rectangle.
- Parameters
-
x | the point x coordinate |
y | the point y coordinate |
void gcn::Rectangle::setAll |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Sets the dimension of a rectangle.
- Parameters
-
int gcn::Rectangle::height |
int gcn::Rectangle::width |
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The