Pioneer
GuiRadioGroup.h
Go to the documentation of this file.
1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _GUIRADIOGROUP_H
5 #define _GUIRADIOGROUP_H
6 
7 #include "Gui.h"
8 #include <list>
9 
10 namespace Gui {
11  class RadioGroup {
12  public:
14  virtual ~RadioGroup(){};
15  void Add(ISelectable *b);
16  void SetSelected(int member_idx);
17 
18  private:
19  void OnSelected(ISelectable *b);
20  std::list<ISelectable *> m_members;
21  };
22 } // namespace Gui
23 
24 #endif /* _GUIRADIOGROUP_H */
Definition: GuiISelectable.h:10
Definition: GuiRadioGroup.h:11
void SetSelected(int member_idx)
Definition: GuiRadioGroup.cpp:24
virtual ~RadioGroup()
Definition: GuiRadioGroup.h:14
RadioGroup()
Definition: GuiRadioGroup.h:13
void Add(ISelectable *b)
Definition: GuiRadioGroup.cpp:9
Definition: Gui.cpp:10