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

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

#include <ShapeCircleUIComponent.hpp>

Inheritance diagram for shkyera::ShapeCircleUIComponent:
[legend]

Public Member Functions

virtual ~ShapeCircleUIComponent ()=default
 Virtual destructor for ShapeCircleUIComponent. More...
 
virtual void drawOptions () override
 Draw options specific to the circle shape. More...
 
virtual void initialize (std::shared_ptr< Renderer > renderer) override
 Initialize the ShapeCircleUIComponent. 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< ShapeCircleComponent_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 circle shapes within a graphical user interface.

The ShapeCircleUIComponent class extends the ShapeUIComponent and provides methods for drawing circle shapes and handling their options. This class is specific to rendering circle shapes and should be used for that purpose.

Constructor & Destructor Documentation

◆ ~ShapeCircleUIComponent()

virtual shkyera::ShapeCircleUIComponent::~ShapeCircleUIComponent ( )
virtualdefault

Virtual destructor for ShapeCircleUIComponent.

Member Function Documentation

◆ drawOptions()

void shkyera::ShapeCircleUIComponent::drawOptions ( )
overridevirtual

Draw options specific to the circle shape.

This method is responsible for rendering options specific to the circle shape within the UI component.

Implements shkyera::ShapeUIComponent.

◆ initialize()

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

Initialize the ShapeCircleUIComponent.

Perform any initialization steps required for rendering circle 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<ShapeCircleComponent> shkyera::ShapeCircleUIComponent::_shape
private

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