26 #include <boost/dynamic_bitset.hpp> 34 struct builder_multimenu_button;
74 virtual void set_active(
const bool active)
override;
77 virtual bool get_active()
const override;
80 virtual unsigned get_state()
const override;
112 return values_.size();
121 void select_option(
const unsigned option,
const bool selected =
true);
128 void select_options(boost::dynamic_bitset<> states);
135 void set_values(
const std::vector<::config>& values);
144 return toggle_states_;
150 void reset_toggle_states();
165 void set_state(
const state_t state);
186 void update_config_from_toggle_states();
191 static const std::string&
type();
195 virtual const std::string& get_control_type()
const override;
199 void signal_handler_mouse_enter(
const event::ui_event event,
bool& handled);
201 void signal_handler_mouse_leave(
const event::ui_event event,
bool& handled);
203 void signal_handler_left_button_down(
const event::ui_event event,
bool& handled);
205 void signal_handler_left_button_up(
const event::ui_event event,
bool& handled);
207 void signal_handler_left_button_click(
const event::ui_event event,
bool& handled);
209 void signal_handler_notify_changed();
238 virtual std::unique_ptr<widget>
build()
const override;
Base class of a resolution, contains the common keys for a resolution.
ui_event
The event sent to the dispatcher.
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.