![]() |
TinyLib 0.1.1
|
#include <Rectangle.h>
Public Member Functions | |
| Rectangle (Vec4i bounds={0, 0, 0, 0}) | |
| Creates a new rectangle with drawable constructor. | |
| ~Rectangle () | |
| Nothing to clean up for now. | |
Public Member Functions inherited from tl::Drawable | |
| Drawable (Vec4i bounds={0, 0, 0, 0}) | |
| Creates a new drawable object with it's position and size. | |
| ~Drawable () | |
| Nothing to clean up for now. | |
| void | setPosition (Vec2i) |
| Set position of this drawable object. | |
| void | setSize (Vec2i) |
| Set size of this drawable object. | |
| Vec2i | getPosition () const |
| Get the current position of this drawable object. | |
| Vec2i | getSize () const |
| Get the current size of this drawable object. | |
| Color | getColor () const |
| Get the current color of this drawable object. | |
| void | move (Vec2i) |
| Move this drawable object from current position. | |
| void | setColor (Color) |
| Set the color of this drawable object. | |
| bit | intersects (Drawable &) const |
| Check if this drawable is intersecting with another. | |
| bit | intersects (Window &) const |
| Check if this drawable is inside the window. | |
Additional Inherited Members | |
Protected Attributes inherited from tl::Drawable | |
| s32 | posX |
| s32 | posY |
| s32 | sizeX |
| s32 | sizeY |
| u8 | r = 0 |
| u8 | g = 0 |
| u8 | b = 0 |
| u8 | a = 0 |
Definition at line 10 of file Rectangle.h.
| tl::Rectangle::Rectangle | ( | Vec4i | bounds = {0, 0, 0, 0} | ) |
Creates a new rectangle with drawable constructor.
| bounds | Boundaries of this rectangle, (width, height, left, top). |
Definition at line 8 of file Rectangle.cpp.
| tl::Rectangle::~Rectangle | ( | ) |
Nothing to clean up for now.
Definition at line 16 of file Rectangle.cpp.