25 #include <boost/dynamic_bitset.hpp> 33 struct builder_multimenu_button;
49 virtual void set_active(
const bool active)
override;
52 virtual bool get_active()
const override;
55 virtual unsigned get_state()
const override;
87 return values_.size();
96 void select_option(
const unsigned option,
const bool selected =
true);
103 void select_options(boost::dynamic_bitset<> states);
110 void set_values(
const std::vector<::config>& values);
119 return toggle_states_;
125 void reset_toggle_states();
140 void set_state(
const state_t state);
161 void update_config_from_toggle_states();
166 static const std::string&
type();
170 virtual const std::string& get_control_type()
const override;
174 void signal_handler_mouse_enter(
const event::ui_event event,
bool& handled);
176 void signal_handler_mouse_leave(
const event::ui_event event,
bool& handled);
178 void signal_handler_left_button_down(
const event::ui_event event,
bool& handled);
180 void signal_handler_left_button_up(
const event::ui_event event,
bool& handled);
182 void signal_handler_left_button_click(
const event::ui_event event,
bool& handled);
184 void toggle_state_changed();
Base class of a resolution, contains the common keys for a resolution.
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.
ui_event
The event send to the dispatcher.