25 struct builder_drawing;
65 virtual void set_active(
const bool active)
override;
71 virtual unsigned get_state()
const override;
99 static const std::string&
type();
129 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 simple canvas which can be drawn upon.
void append_cfg(const config &cfg)
Appends data to the config.
void set_cfg(const config &cfg, const bool force=false)
Sets the config.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
virtual void request_reduce_width(const unsigned maximum_width) override
See widget::request_reduce_width.
void append_drawing_data(const ::config &cfg)
canvas & get_drawing_canvas()
void set_best_size(const point &best_size)
point best_size_
When we're used as a fixed size item, this holds the best size.
static const std::string & type()
Static type getter that does not rely on the widget being constructed.
state_t
Possible states of the widget.
void set_drawing_data(const ::config &cfg)
virtual void request_reduce_height(const unsigned maximum_height) override
See widget::request_reduce_height.
virtual const std::string & get_control_type() const override
Inherited from styled_widget, implemented by REGISTER_WIDGET.
virtual bool get_active() const override
See styled_widget::get_active.
drawing(const implementation::builder_drawing &builder)
virtual void set_active(const bool active) override
See styled_widget::set_active.
virtual point calculate_best_size() const override
See widget::calculate_best_size.
virtual unsigned get_state() const override
See styled_widget::get_state.
Contains the implementation details for lexical_cast and shouldn't be used directly.
resolution(const config &cfg)
drawing_definition(const config &cfg)
typed_formula< unsigned > height
The height of the widget.
config draw
Config containing what to draw on the widgets canvas.
typed_formula< unsigned > width
The width of the widget.
builder_drawing(const config &cfg)
virtual std::unique_ptr< widget > build() const override