15 #ifndef GUI_WIDGETS_SELECTABLE_HPP_INCLUDED
16 #define GUI_WIDGETS_SELECTABLE_HPP_INCLUDED
43 virtual void set_value(
const unsigned) = 0;
virtual void set_callback_state_change(std::function< void(twidget &)> callback)=0
When the user does something to change the widget state this event is fired.
virtual unsigned get_value() const =0
Is the control selected?
virtual void set_value(const unsigned)=0
Select the control.
A class inherited from ttext_box that displays its input as stars.
bool get_value_bool() const
GLsizei const GLfloat * value
Small abstract helper class.
virtual unsigned num_states() const =0
The number of states, that is 2 for normal buttons, 3 for tristate buttons.
void set_value_bool(const bool value)