15 #define GETTEXT_DOMAIN "wesnoth-lib"
36 return best_size_ !=
tpoint(0, 0) ? best_size_
71 DBG_GUI_P <<
"Parsing drawing " <<
id <<
'\n';
73 load_resolutions<tresolution>(cfg);
108 static const config dummy(
"draw");
151 tbuilder_drawing::tbuilder_drawing(
const config& cfg)
153 ,
width(cfg[
"width"])
155 ,
draw(cfg.child(
"draw"))
168 const unsigned w =
width(size);
169 const unsigned h =
height(size);
177 DBG_GUI_G <<
"Window builder: placed drawing '" <<
id
178 <<
"' with definition '" <<
definition <<
"'.\n";
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
GLuint GLuint GLsizei GLenum type
virtual bool get_active() const override
See tcontrol::get_active.
void set_best_size(const tpoint &best_size)
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.
GLubyte GLubyte GLubyte GLubyte w
config draw
Config containing what to draw on the widgets canvas.
void draw(surface screen)
virtual void set_active(const bool active) override
See tcontrol::set_active.
Contains the state info for a resolution.
virtual unsigned get_state() const override
See tcontrol::get_state.
tformula< unsigned > height
The height of the widget.
GLfloat GLfloat GLfloat GLfloat h
std::vector< tcanvas > & canvas()
tresolution(const config &cfg)
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
tformula< unsigned > width
The width of the widget.
std::vector< tstate_definition > state
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.
tdrawing_definition(const config &cfg)
A config object defines a single node in a WML file, with access to child nodes.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
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.