15 #define GETTEXT_DOMAIN "wesnoth-lib"
33 return best_size_ !=
tpoint(0, 0) ? best_size_
77 DBG_GUI_P <<
"Parsing spacer " <<
id <<
'\n';
79 load_resolutions<tresolution>(cfg);
139 tbuilder_spacer::tbuilder_spacer(
const config& cfg)
155 if(width || height) {
159 DBG_GUI_G <<
"Window builder: placed spacer '" <<
id
160 <<
"' with definition '" <<
definition <<
"'.\n";
virtual unsigned get_state() const override
See tcontrol::get_state.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
tformula< unsigned > height_
virtual void set_active(const bool active) override
See tcontrol::set_active.
tresolution(const config &cfg)
GLuint GLuint GLsizei GLenum type
void set_best_size(const tpoint &best_size)
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
tformula< unsigned > width_
Base class of a resolution, contains the common keys for a resolution.
A class inherited from ttext_box that displays its input as stars.
void init_control(tcontrol *control) const
std::string definition
Parameters for the control.
tspacer_definition(const config &cfg)
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
virtual bool get_active() const override
See tcontrol::get_active.
virtual void impl_draw_background(surface &frame_buffer, int x_offset, int y_offset) override
See twidget::impl_draw_background.
GLint GLint GLint GLint GLint GLint GLsizei width
void get_screen_size_variables(game_logic::map_formula_callable &variable)
Gets a formula object with the screen size.
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.
virtual tpoint calculate_best_size() const override
See twidget::calculate_best_size.