25 struct builder_toggle_button;
64 virtual void set_active(
const bool active)
override;
67 virtual bool get_active()
const override;
70 virtual unsigned get_state()
const override;
73 virtual void update_canvas()
override;
82 virtual unsigned num_states()
const override;
89 void set_retval(
const int retval);
93 icon_name_ = icon_name;
119 void set_state(
const state_t state);
148 static const std::string&
type();
152 virtual const std::string& get_control_type()
const override;
156 void signal_handler_mouse_enter(
const event::ui_event event,
bool& handled);
158 void signal_handler_mouse_leave(
const event::ui_event event,
bool& handled);
163 void signal_handler_left_button_double_click(
const event::ui_event event,
190 virtual std::unique_ptr<widget>
build()
const override;
Base class of a resolution, contains the common keys for a resolution.
Small abstract helper class.
ui_event
The event sent to the dispatcher.
bool fire_event(const ui_event event, const std::vector< std::pair< widget *, ui_event >> &event_chain, widget *dispatcher, widget *w, F &&... params)
Helper function for fire_event.
std::map< std::string, t_string > widget_item
retval
Default window/dialog return values.
std::unique_ptr< window > build(const builder_window::window_resolution &definition)
Builds a window.
A config object defines a single node in a WML file, with access to child nodes.
Contains the implementation details for lexical_cast and shouldn't be used directly.