Shkyera Engine
Easy to use, game engine for Python
ShapeRectangleUIComponent.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
11 
12 namespace shkyera {
13 
24  public:
28  using ShapeUIComponent::ShapeUIComponent;
29 
33  virtual ~ShapeRectangleUIComponent() = default;
34 
41  virtual void drawOptions() override;
42 
51  virtual void initialize(std::shared_ptr<Renderer> renderer) override;
52 
53  private:
54  std::shared_ptr<ShapeRectangleComponent> _shape; //< The rectangle shape associated with this component. */
55 };
56 
57 } // namespace shkyera
Defines the ShapeRectangleComponent class, a specialized shape component for rendering rectangles.
Defines the ShapeUIComponent class, a UIComponent for rendering shapes.
A specialized UIComponent for rendering rectangle shapes within a graphical user interface.
Definition: ShapeRectangleUIComponent.hpp:23
std::shared_ptr< ShapeRectangleComponent > _shape
Definition: ShapeRectangleUIComponent.hpp:54
virtual void drawOptions() override
Draw options specific to the rectangle shape.
Definition: ShapeRectangleUIComponent.cpp:9
virtual ~ShapeRectangleUIComponent()=default
Virtual destructor for ShapeRectangleUIComponent.
virtual void initialize(std::shared_ptr< Renderer > renderer) override
Initialize the ShapeRectangleUIComponent.
Definition: ShapeRectangleUIComponent.cpp:22
A specialized UIComponent for rendering shapes within a graphical user interface.
Definition: ShapeUIComponent.hpp:23
Definition: Entity.cpp:3