Shkyera Engine
Easy to use, game engine for Python
ShapeLineUIComponent.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 ~ShapeLineUIComponent() = 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<ShapeLineComponent> _shape;
55 };
56 
57 } // namespace shkyera
Defines the ShapeLineComponent class, a specialized shape component for rendering lines.
Defines the ShapeUIComponent class, a UIComponent for rendering shapes.
A specialized UIComponent for rendering line shapes within a graphical user interface.
Definition: ShapeLineUIComponent.hpp:23
virtual ~ShapeLineUIComponent()=default
Virtual destructor for ShapeLineUIComponent.
virtual void drawOptions() override
Draw options specific to the line shape.
Definition: ShapeLineUIComponent.cpp:10
virtual void initialize(std::shared_ptr< Renderer > renderer) override
Initialize the ShapeLineUIComponent.
Definition: ShapeLineUIComponent.cpp:19
std::shared_ptr< ShapeLineComponent > _shape
Definition: ShapeLineUIComponent.hpp:54
A specialized UIComponent for rendering shapes within a graphical user interface.
Definition: ShapeUIComponent.hpp:23
Definition: Entity.cpp:3