Shkyera Engine
Easy to use, game engine for Python
|
A specialized UIComponent for rendering line shapes within a graphical user interface. More...
#include <ShapeLineUIComponent.hpp>
Public Member Functions | |
virtual | ~ShapeLineUIComponent ()=default |
Virtual destructor for ShapeLineUIComponent. More... | |
virtual void | drawOptions () override |
Draw options specific to the line shape. More... | |
virtual void | initialize (std::shared_ptr< Renderer > renderer) override |
Initialize the ShapeLineUIComponent. More... | |
Public Member Functions inherited from shkyera::ShapeUIComponent | |
virtual | ~ShapeUIComponent ()=default |
Virtual destructor for ShapeUIComponent. More... | |
virtual void | draw () override |
Draw the shape within the UI component. More... | |
UIComponent (std::string name, std::shared_ptr< GameObject > object) | |
Constructor for ShapeUIComponent. More... | |
Public Member Functions inherited from shkyera::UIComponent | |
UIComponent (std::string name, std::shared_ptr< GameObject > object) | |
Constructor to create a UI component with a specified name and associated game object. More... | |
Private Attributes | |
std::shared_ptr< ShapeLineComponent > | _shape |
Additional Inherited Members | |
Static Public Member Functions inherited from shkyera::UIComponent | |
static void | addComponentToObject (std::shared_ptr< GameObject > object, std::shared_ptr< UIComponent > component) |
Static method to add a UI component to a game object. More... | |
static std::vector< std::shared_ptr< UIComponent > > | getComponentsOfObject (std::shared_ptr< GameObject > object) |
Static method to retrieve a list of UI components associated with a game object. More... | |
Protected Attributes inherited from shkyera::UIComponent | |
uint64_t | _uuid |
A unique identifier for the UI component. More... | |
std::string | _name |
The name of the UI component. More... | |
std::shared_ptr< GameObject > | _object |
The game object associated with the UI component. More... | |
A specialized UIComponent for rendering line shapes within a graphical user interface.
The ShapeLineUIComponent class extends the ShapeUIComponent and provides methods for drawing line shapes and handling their options. This class is specific to rendering line shapes and should be used for that purpose.
|
virtualdefault |
Virtual destructor for ShapeLineUIComponent.
|
overridevirtual |
Draw options specific to the line shape.
This method is responsible for rendering options specific to the line shape within the UI component.
Implements shkyera::ShapeUIComponent.
|
overridevirtual |
Initialize the ShapeLineUIComponent.
Perform any initialization steps required for rendering line shapes, such as setting up resources or configuring rendering parameters.
renderer | A shared pointer to the Renderer used for rendering. |
Implements shkyera::ShapeUIComponent.
|
private |
The line shape associated with this component.