Shkyera Engine
Easy to use, game engine for Python
shkyera::ShapeRectangleUIComponent Class Reference

A specialized UIComponent for rendering rectangle shapes within a graphical user interface. More...

#include <ShapeRectangleUIComponent.hpp>

Inheritance diagram for shkyera::ShapeRectangleUIComponent:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ShapeRectangleUIComponent()

virtual shkyera::ShapeRectangleUIComponent::~ShapeRectangleUIComponent ( )
virtualdefault

Virtual destructor for ShapeRectangleUIComponent.

Member Function Documentation

◆ drawOptions()

void shkyera::ShapeRectangleUIComponent::drawOptions ( )
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.

◆ initialize()

void shkyera::ShapeRectangleUIComponent::initialize ( std::shared_ptr< Renderer renderer)
overridevirtual

Initialize the ShapeRectangleUIComponent.

Perform any initialization steps required for rendering rectangle shapes, such as setting up resources or configuring rendering parameters.

Parameters
rendererA shared pointer to the Renderer used for rendering.

Implements shkyera::ShapeUIComponent.

Member Data Documentation

◆ _shape

std::shared_ptr<ShapeRectangleComponent> shkyera::ShapeRectangleUIComponent::_shape
private

The documentation for this class was generated from the following files: