_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
55 #ifndef GCN_RECTANGLE_HPP
56 #define GCN_RECTANGLE_HPP
82 Rectangle(
int x,
int y,
int width,
int height);
92 void setAll(
int x,
int y,
int width,
int height);
99 bool intersect(
const Rectangle& rectangle);
102 return !(rectangle.
x > x + width ||
103 rectangle.
y > y + height ||
104 x > rectangle.
x + rectangle.
width ||
105 y > rectangle.
y + rectangle.
height);
114 bool isPointInRect(
int x,
int y)
const;
123 #endif // end GCN_RECTANGEL_HPP
Definition: cliprectangle.cpp:61
int width
Definition: rectangle.h:118
Definition: rectangle.h:65
int height
Definition: rectangle.h:119
int x
Definition: rectangle.h:116
bool intersect(const Rectangle &rectangle) const
Definition: rectangle.h:100
int y
Definition: rectangle.h:117
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.