_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <cliprectangle.h>
Public Member Functions | |
ClipRectangle () | |
ClipRectangle (int x, int y, int width, int height, int xOffset, int yOffset) | |
const ClipRectangle & | operator= (const Rectangle &other) |
Public Member Functions inherited from gcn::Rectangle | |
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 | xOffset |
int | yOffset |
Public Attributes inherited from gcn::Rectangle | |
int | x |
int | y |
int | width |
int | height |
A rectangle used when dealing with clipping. It is a regular Rectangle extended with variables for x offsets and y offsets.
gcn::ClipRectangle::ClipRectangle | ( | ) |
Constructor.
gcn::ClipRectangle::ClipRectangle | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
int | xOffset, | ||
int | yOffset | ||
) |
const ClipRectangle & gcn::ClipRectangle::operator= | ( | const Rectangle & | other | ) |
Copies x, y, width and height field from a Rectangle.
other | the Rectangle to copy from. |
int gcn::ClipRectangle::xOffset |
x-origin of drawing (used by Graphics).
int gcn::ClipRectangle::yOffset |
y-origin of drawing (used by Graphics)