39 virtual void set_active(
const bool active)
override;
45 virtual unsigned get_state()
const override;
void signal_handler_mouse_leave(const event::tevent event, bool &handled)
virtual unsigned get_state() const override
See tcontrol::get_state.
std::function< void(twidget &)> callback_state_change_
See tselectable_::set_callback_state_change.
void signal_handler_left_button_up(const event::tevent event, bool &handled)
virtual unsigned get_value() const override
Inherited from tselectable_.
void connect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Connects a signal handler for a left mouse button click.
virtual void set_callback_state_change(std::function< void(twidget &)> callback)
Inherited from tselectable_.
void set_state(const tstate state)
Base class of a resolution, contains the common keys for a resolution.
GLboolean GLenum GLenum GLvoid * values
A class inherited from ttext_box that displays its input as stars.
void disconnect_click_handler(const event::tsignal_function &signal)
Inherited from tclickable.
tbuilder_combobox(const config &cfg)
std::function< void(twidget &)> selected_callback_
int retval_
The return value of the button.
tresolution(const config &cfg)
GLsizei const GLfloat * value
virtual void set_active(const bool active) override
See tcontrol::set_active.
std::function< void(tdispatcher &dispatcher, const tevent event, bool &handled, bool &halt)> tsignal_function
Callback function signature.
void signal_handler_mouse_enter(const event::tevent event, bool &handled)
virtual unsigned num_states() const override
Inherited from tselectable_.
tevent
The event send to the dispatcher.
std::string get_value_string() const
Returns the value of the selected row.
void signal_handler_left_button_down(const event::tevent event, bool &handled)
void connect_click_handler(const event::tsignal_function &signal)
Inherited from tclickable.
Small abstract helper class.
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
void signal_handler_left_button_click(const event::tevent event, bool &handled)
std::vector< std::string > options_
void set_values(const std::vector< std::string > &values, int selected=0)
tstate
Possible states of the widget.
void set_retval(const int retval)
tcombobox_definition(const config &cfg)
void disconnect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Disconnects a signal handler for a left mouse button click.
virtual void set_value(const unsigned value) override
Inherited from tselectable_.
std::vector< std::string > values_
Base class for all visible items.
tstate state_
Current state of the widget.
void set_selected(int selected)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.
virtual bool get_active() const override
See tcontrol::get_active.