29 struct builder_drawing;
64 get_drawing_canvas().set_cfg(cfg);
69 get_drawing_canvas().append_cfg(cfg);
75 virtual void request_reduce_width(
const unsigned maximum_width)
override;
78 virtual void request_reduce_height(
const unsigned maximum_height)
override;
82 virtual point calculate_best_size()
const override;
88 virtual void set_active(
const bool active)
override;
91 virtual bool get_active()
const override;
94 virtual unsigned get_state()
const override;
97 bool disable_click_dismiss()
const override;
103 best_size_ = best_size;
122 static const std::string&
type();
126 virtual const std::string& get_control_type()
const override;
152 virtual std::unique_ptr<widget>
build()
const override;
Base class of a resolution, contains the common keys for a resolution.
state_t
Possible states of the widget.
void set_drawing_data(const ::config &cfg)
point best_size_
When we're used as a fixed size item, this holds the best size.
A drawing is widget with a fixed size and gives access to the canvas of the widget in the window inst...
void set_best_size(const point &best_size)
void append_drawing_data(const ::config &cfg)
canvas & get_drawing_canvas()
A simple canvas which can be drawn upon.
typed_formula< unsigned > height
The height of the widget.
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.
config draw
Config containing what to draw on the widgets canvas.
typed_formula< unsigned > width
The width of the widget.