#include <rectangle.h>
◆ Rectangle() [1/2]
gcn::Rectangle::Rectangle |
( |
| ) |
|
Constructor. Resets member variables.
◆ Rectangle() [2/2]
gcn::Rectangle::Rectangle |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ intersect() [1/2]
bool gcn::Rectangle::intersect |
( |
const Rectangle & |
rectangle | ) |
|
◆ intersect() [2/2]
bool gcn::Rectangle::intersect |
( |
const Rectangle & |
rectangle | ) |
const |
|
inline |
◆ isPointInRect()
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 |
◆ setAll()
void gcn::Rectangle::setAll |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Sets the dimension of a rectangle.
- Parameters
-
◆ height
int gcn::Rectangle::height |
◆ width
int gcn::Rectangle::width |
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The