Shkyera Engine
Easy to use, game engine for Python
|
A specialized UIComponent for rendering rectangle shapes within a graphical user interface. More...
#include <ShapeRectangleUIComponent.hpp>
Public Member Functions | |
virtual | ~ShapeRectangleUIComponent ()=default |
Virtual destructor for ShapeRectangleUIComponent. More... | |
virtual void | drawOptions () override |
Draw options specific to the rectangle shape. More... | |
virtual void | initialize (std::shared_ptr< Renderer > renderer) override |
Initialize the ShapeRectangleUIComponent. 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< ShapeRectangleComponent > | _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 rectangle shapes within a graphical user interface.
The ShapeRectangleUIComponent class extends the ShapeUIComponent and provides methods for drawing rectangle shapes and handling their options. This class is specific to rendering rectangle shapes and should be used for that purpose.
|
virtualdefault |
Virtual destructor for ShapeRectangleUIComponent.
|
overridevirtual |
Draw options specific to the rectangle shape.
This method is responsible for rendering options specific to the rectangle shape within the UI component.
Implements shkyera::ShapeUIComponent.
|
overridevirtual |
Initialize the ShapeRectangleUIComponent.
Perform any initialization steps required for rendering rectangle shapes, such as setting up resources or configuring rendering parameters.
renderer | A shared pointer to the Renderer used for rendering. |
Implements shkyera::ShapeUIComponent.
|
private |