#include <rectangle.hpp>
Inheritance diagram for gcn::Rectangle:

Definition at line 65 of file rectangle.hpp.
Public Member Functions | |
| Rectangle () | |
| Constructor. | |
| Rectangle (int x, int y, int width, int height) | |
| Constructor. | |
| void | setAll (int x, int y, int width, int height) |
| Sets the dimension of a rectangle. | |
| bool | intersect (const Rectangle &rectangle) |
| Checks if another Rectangle intersects with the Rectangle. | |
| bool | isPointInRect (int x, int y) const |
| Checks if a point is inside the Rectangle. | |
Public Attributes | |
| int | x |
| int | y |
| int | width |
| int | height |
|
|
Constructor. Resets member variables. Definition at line 63 of file rectangle.cpp. |
|
||||||||||||||||||||
|
Constructor.
Definition at line 71 of file rectangle.cpp. |
|
|
Checks if another Rectangle intersects with the Rectangle.
Definition at line 87 of file rectangle.cpp. Referenced by gcn::SDLGraphics::fillRectangle(), and gcn::Graphics::pushClipArea(). |
|
||||||||||||
|
Checks if a point is inside the Rectangle.
Definition at line 128 of file rectangle.cpp. Referenced by gcn::SDLGraphics::drawLine(), gcn::SDLGraphics::drawPoint(), and gcn::Gui::logic(). |
|
||||||||||||||||||||
|
Sets the dimension of a rectangle.
Definition at line 79 of file rectangle.cpp. |
1.4.1