Rectangle shape object.
More...
#include <Objects.hpp>
|
| virtual void | Update (Scene::Scene *scene) override final |
| | Update and draw the rectangle.
|
| |
| double | get_x () |
| | Get the X position.
|
| |
| void | SetX (double new_x) |
| | Set the X position.
|
| |
| void | AddX (double add_x) |
| | Add to the X position.
|
| |
| double | get_y () |
| | Get the Y position.
|
| |
| void | SetY (double new_y) |
| | Set the Y position.
|
| |
| void | AddY (double add_y) |
| | Add to the Y position.
|
| |
|
virtual void | Init () |
| | Initialize the object.
|
| |
|
void | UpdateAttached () |
| | Updates the objects attached to this instance.
|
| |
| void | Attach (Object *obj) |
| | Attach an object to this object and set its relative position.
|
| |
| void | SetScene (Scene::Scene *scene) |
| | Setter for the currentscene (called by the Scene instance)
|
| |
| Scene::Scene * | GetScene () const |
| | Getter for the currentscene (called by the Scene instance)
|
| |
| void | SetInputManager (Input::InputManager *manager) |
| | Setter for the inputmanager (called by the Scene instance)
|
| |
|
|
double | width = 10 |
| | Width of the rectangle.
|
| |
|
double | height = 10 |
| | Height of the rectangle.
|
| |
|
u32 | color = Colors::clrWhite |
| | Color of the rectangle.
|
| |
|
bool | visible = true |
| |
|
std::vector< Objects::Object * > | attachedElements |
| |
|
Object * | parent = nullptr |
| |
|
int | id = -1 |
| |
◆ Update()
Update and draw the rectangle.
- Parameters
-
| scene | Pointer to the current scene |
Reimplemented from Objects::Object.
The documentation for this class was generated from the following files: