#include <cliprectangle.hpp>
Inheritance diagram for gcn::ClipRectangle:
It is a regular Rectangle extended with variables for x offsets and y offsets.
Definition at line 69 of file cliprectangle.hpp.
Public Member Functions | |
ClipRectangle () | |
Constructor. | |
ClipRectangle (int x, int y, int width, int height, int xOffset, int yOffset) | |
Constructor. | |
const ClipRectangle & | operator= (const Rectangle &other) |
Copies x, y, width and height field from a Rectangle. | |
Public Attributes | |
int | xOffset |
x-origin of drawing (used by Graphics). | |
int | yOffset |
y-origin of drawing (used by Graphics). |
gcn::ClipRectangle::ClipRectangle | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height, | |||
int | xOffset, | |||
int | yOffset | |||
) |
Constructor.
x | the rectangle x coordinate. | |
y | the rectangle y coordinate. | |
width | the rectangle width. | |
height | the rectangle height. | |
xOffset | origin of drawing (used by Graphics). | |
yOffset | origin of drawing (used by Graphics) . |
Definition at line 70 of file cliprectangle.cpp.
const ClipRectangle & gcn::ClipRectangle::operator= | ( | const Rectangle & | other | ) |
Copies x, y, width and height field from a Rectangle.
other | the Rectangle to copy from. |
Definition at line 80 of file cliprectangle.cpp.
References gcn::Rectangle::height, gcn::Rectangle::width, gcn::Rectangle::x, and gcn::Rectangle::y.