____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#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 Attributes | |
| int | xOffset |
| int | yOffset |
Definition at line 67 of file cliprectangle.h.
| gcn::ClipRectangle::ClipRectangle | ( | ) |
Constructor.
Definition at line 63 of file cliprectangle.cpp.
References gcn::Rectangle::height, gcn::Rectangle::width, gcn::Rectangle::x, xOffset, gcn::Rectangle::y, and yOffset.
| 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 68 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 78 of file cliprectangle.cpp.
References gcn::Rectangle::height, gcn::Rectangle::width, gcn::Rectangle::x, and gcn::Rectangle::y.
x-origin of drawing (used by Graphics).
Definition at line 99 of file cliprectangle.h.
Referenced by ClipRectangle(), gcn::SDLGraphics::drawHLine(), gcn::SDLGraphics::drawImage(), gcn::SDLGraphics::drawLine(), gcn::SDLGraphics::drawPoint(), MyOpenGLGraphics::drawRectangle(), gcn::SDLGraphics::drawSDLSurface(), CFont::drawString(), gcn::SDLGraphics::drawVLine(), MyOpenGLGraphics::fillRectangle(), gcn::SDLGraphics::fillRectangle(), and gcn::Graphics::pushClipArea().
y-origin of drawing (used by Graphics)
Definition at line 104 of file cliprectangle.h.
Referenced by ClipRectangle(), gcn::SDLGraphics::drawHLine(), gcn::SDLGraphics::drawImage(), gcn::SDLGraphics::drawLine(), gcn::SDLGraphics::drawPoint(), MyOpenGLGraphics::drawRectangle(), gcn::SDLGraphics::drawSDLSurface(), CFont::drawString(), gcn::SDLGraphics::drawVLine(), MyOpenGLGraphics::fillRectangle(), gcn::SDLGraphics::fillRectangle(), and gcn::Graphics::pushClipArea().
1.5.6