_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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 |
Represents a rectangle.
| 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 | ) |
|
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 |
| void gcn::Rectangle::setAll | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
| int gcn::Rectangle::height |
| int gcn::Rectangle::width |
| int gcn::Rectangle::x |
| int gcn::Rectangle::y |
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.