$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <rectangle.h>
Public Member Functions | |
Rectangle () | |
Rectangle (int x, int y, int width, int height) | |
void | setAll (int x, int y, int width, int height) |
bool | intersect (const Rectangle &rectangle) |
bool | intersect (const Rectangle &rectangle) const |
bool | isPointInRect (int x, int y) const |
Public Attributes | |
int | x |
int | y |
int | width |
int | height |
gcn::Rectangle::Rectangle | ( | ) |
Constructor. Resets member variables.
gcn::Rectangle::Rectangle | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) |
void gcn::Rectangle::setAll | ( | 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.
x | the point x coordinate | |
y | the point y coordinate |