Peoplemon  0.1.0
Peoplemon 3 game source documentation
HighlightRadioButton.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_HIGHLIGHTRADIOBUTTON_HPP
2 #define EDITOR_COMPONENTS_HIGHLIGHTRADIOBUTTON_HPP
3 
4 #include <BLIB/Interfaces/GUI/Elements/RadioButton.hpp>
5 
6 namespace editor
7 {
8 namespace component
9 {
16 class HighlightRadioButton : public bl::gui::RadioButton {
17 public:
19  using Ptr = std::shared_ptr<HighlightRadioButton>;
20 
28  static Ptr create(bl::gui::Element::Ptr child, bl::gui::RadioButton::Group* group = nullptr);
29 
33  virtual ~HighlightRadioButton() = default;
34 
35 private:
36  HighlightRadioButton(bl::gui::Element::Ptr child, bl::gui::RadioButton::Group* group);
37 
38  virtual void onAcquisition() override;
39  virtual bl::gui::rdr::Component* doPrepareRender(bl::gui::rdr::Renderer& renderer) override;
40 };
41 
42 } // namespace component
43 } // namespace editor
44 
45 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Helper GUI component that functions as a RadioButton but also renders a conspicuous highlight when it...
static Ptr create(bl::gui::Element::Ptr child, bl::gui::RadioButton::Group *group=nullptr)
Creates a new HighlightRadioButton.
virtual ~HighlightRadioButton()=default
Destroy the Highlight Radio Button.
std::shared_ptr< HighlightRadioButton > Ptr
Pointer to a HighlightRadioButton.