Line object.
More...
#include <Objects.hpp>
|
| virtual void | Update (Scene::Scene *scene) override |
| | Update and draw the line.
|
| |
| void | SetEndPoint (double x, double y) |
| | Set the end point of the line.
|
| |
| 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)
|
| |
|
|
u32 | color = Colors::clrWhite |
| | Color of the line.
|
| |
|
float | thickness = 1.0f |
| | Thickness of the line.
|
| |
|
bool | visible = true |
| |
|
std::vector< Objects::Object * > | attachedElements |
| |
|
Object * | parent = nullptr |
| |
|
int | id = -1 |
| |
◆ SetEndPoint()
| void Line::SetEndPoint |
( |
double | x, |
|
|
double | y ) |
Set the end point of the line.
- Parameters
-
| x | End X position |
| y | End Y position |
◆ Update()
Update and draw the line.
- Parameters
-
| scene | Pointer to the current scene |
Reimplemented from Objects::Object.
The documentation for this class was generated from the following files: