16 #define GETTEXT_DOMAIN "wesnoth-lib"
68 best_size =
point(width, height);
71 if(best_size !=
point()) {
111 load_resolutions<resolution>(cfg);
124 builder_spacer::builder_spacer(
const config& cfg)
133 DBG_GUI_G <<
"Window builder: placed spacer '" <<
id
134 <<
"' with definition '" <<
definition <<
"'.";
A config object defines a single node in a WML file, with access to child nodes.
virtual void request_reduce_height(const unsigned maximum_height) override
See widget::request_reduce_height.
virtual unsigned get_state() const override
See styled_widget::get_state.
bool fills_available_space()
virtual void set_active(const bool active) override
See styled_widget::set_active.
virtual bool impl_draw_background() override
See widget::impl_draw_background.
typed_formula< unsigned > width_
virtual bool get_active() const override
See styled_widget::get_active.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
virtual point calculate_best_size() const override
See widget::calculate_best_size.
typed_formula< unsigned > height_
virtual void request_reduce_width(const unsigned maximum_width) override
See widget::request_reduce_width.
void point(int x, int y)
Draw a single point.
void get_screen_size_variables(wfl::map_formula_callable &variable)
Gets a formula object with the screen size.
Contains the implementation details for lexical_cast and shouldn't be used directly.
std::size_t size(std::string_view str)
Length in characters of a UTF-8 string.
virtual std::unique_ptr< widget > build() const override
const std::string height_
resolution(const config &cfg)
spacer_definition(const config &cfg)