34 struct builder_spinner;
53 virtual unsigned get_state()
const override;
120 static const std::string&
type();
158 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
A generic container base class.
bool invalid_
If the entered data is invalid.
std::unique_ptr< grid > content_grid_
The grid that holds the content.
state_t state_
Current state of the widget.
virtual const std::string & get_control_type() const override
Inherited from styled_widget, implemented by REGISTER_WIDGET.
void set_value(const int val)
void signal_handler_left_button_down(const event::ui_event event)
virtual bool get_active() const override
See styled_widget::get_active.
text_box * get_internal_text_box()
bool can_wrap() const override
See widget::can_wrap.
state_t
Possible states of the widget.
virtual void set_self_active(const bool active) override
See container_base::set_self_active.
virtual unsigned get_state() const override
See styled_widget::get_state.
static const std::string & type()
Static type getter that does not rely on the widget being constructed.
spinner(const implementation::builder_spinner &builder)
A widget that allows the user to input text in single line.
ui_event
The event sent to the dispatcher.
std::shared_ptr< builder_grid > builder_grid_ptr
Contains the implementation details for lexical_cast and shouldn't be used directly.
virtual std::unique_ptr< widget > build() const override
builder_spinner(const config &cfg)
resolution(const config &cfg)
spinner_definition(const config &cfg)