Peoplemon  0.1.0
Peoplemon 3 game source documentation
HighlightRadioButtonComponent.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_RENDER_HIGHLIGHTRADIOBUTTONCOMPONENT_HPP
2 #define EDITOR_COMPONENTS_RENDER_HIGHLIGHTRADIOBUTTONCOMPONENT_HPP
3 
4 #include <BLIB/Graphics/Rectangle.hpp>
5 #include <BLIB/Interfaces/GUI/Renderer/Basic/RadioButtonComponent.hpp>
6 
7 namespace editor
8 {
9 namespace component
10 {
12 namespace rdr
13 {
19 class HighlightRadioButtonComponent : public bl::gui::rdr::Component {
20 public:
25 
29  virtual ~HighlightRadioButtonComponent() = default;
30 
31 private:
32  bl::gui::defcoms::RadioButtonComponent base;
33  bl::gfx::Rectangle highlight;
34 
35  virtual void setVisible(bool visible) override;
36  virtual void onElementUpdated() override;
37  virtual void onRenderSettingChange() override;
38  virtual bl::ecs::Entity getEntity() const override;
39  virtual void doCreate(bl::engine::Engine& engine, bl::gui::rdr::Renderer& renderer) override;
40  virtual void doSceneAdd(bl::rc::Overlay* overlay) override;
41  virtual void doSceneRemove() override;
42  virtual void handleAcquisition() override;
43  virtual void handleMove() override;
44  virtual sf::Vector2f getRequisition() const override;
45 };
46 
47 } // namespace rdr
48 } // namespace component
49 } // namespace editor
50 
51 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
virtual ~HighlightRadioButtonComponent()=default
Destroys the component.