26 struct builder_progress_bar;
39 virtual void set_active(
const bool active)
override;
45 virtual unsigned get_state()
const override;
74 static const std::string&
type();
105 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
unsigned percentage_
The percentage done.
virtual unsigned get_state() const override
See styled_widget::get_state.
virtual const std::string & get_control_type() const override
Inherited from styled_widget, implemented by REGISTER_WIDGET.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
void set_percentage(unsigned percentage)
state_t
Possible states of the widget.
unsigned get_percentage() const
progress_bar(const implementation::builder_progress_bar &builder)
virtual bool get_active() const override
See styled_widget::get_active.
virtual void set_active(const bool active) override
See styled_widget::set_active.
static const std::string & type()
Static type getter that does not rely on the widget being constructed.
Contains the implementation details for lexical_cast and shouldn't be used directly.
builder_progress_bar(const config &cfg)
virtual std::unique_ptr< widget > build() const override
resolution(const config &cfg)
progress_bar_definition(const config &cfg)