Peoplemon  0.1.0
Peoplemon 3 game source documentation
HighlightRadioButton.cpp
Go to the documentation of this file.
2 
3 #include <BLIB/Interfaces/GUI/Renderer/Renderer.hpp>
4 
5 namespace editor
6 {
7 namespace component
8 {
9 using namespace bl::gui;
11  RadioButton::Group* group) {
12  return Ptr(new HighlightRadioButton(child, group));
13 }
14 
15 HighlightRadioButton::HighlightRadioButton(Element::Ptr c, RadioButton::Group* g)
16 : RadioButton(c, "", g) {
17  setToggleSize(18.f);
18 }
19 
20 void HighlightRadioButton::onAcquisition() { ToggleButton::onAcquisition(); }
21 
22 bl::gui::rdr::Component* HighlightRadioButton::doPrepareRender(bl::gui::rdr::Renderer& renderer) {
23  return renderer.createComponent<HighlightRadioButton>(*this);
24 }
25 
26 } // namespace component
27 } // namespace editor
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.
std::shared_ptr< HighlightRadioButton > Ptr
Pointer to a HighlightRadioButton.