15 #define GETTEXT_DOMAIN "wesnoth-lib" 63 unsigned width =
width_(size);
64 unsigned height =
height_(size);
69 best_size =
point(width, height);
72 if(best_size !=
point()) {
113 DBG_GUI_P <<
"Parsing spacer " <<
id <<
'\n';
115 load_resolutions<resolution>(cfg);
128 builder_spacer::builder_spacer(
const config& cfg)
137 DBG_GUI_G <<
"Window builder: placed spacer '" <<
id 138 <<
"' with definition '" <<
definition <<
"'.\n";
Base class of a resolution, contains the common keys for a resolution.
virtual bool get_active() const override
See styled_widget::get_active.
virtual point calculate_best_size() const override
See widget::calculate_best_size.
virtual unsigned get_state() const override
See styled_widget::get_state.
virtual widget * build() const override
void get_screen_size_variables(wfl::map_formula_callable &variable)
Gets a formula object with the screen size.
virtual void request_reduce_width(const unsigned maximum_width) override
See widget::request_reduce_width.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
This file contains the settings handling of the widget library.
bool fills_available_space()
resolution(const config &cfg)
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
spacer_definition(const config &cfg)
typed_formula< unsigned > width_
const std::string height_
virtual void request_reduce_height(const unsigned maximum_height) override
See widget::request_reduce_height.
typed_formula< unsigned > height_
An empty widget to either fill in a widget since no empty items are allowed or to reserve a fixed spa...
A config object defines a single node in a WML file, with access to child nodes.
virtual void set_active(const bool active) override
See styled_widget::set_active.
virtual void impl_draw_background(surface &frame_buffer, int x_offset, int y_offset) override
See widget::impl_draw_background.
Contains the implementation details for lexical_cast and shouldn't be used directly.