15 #define GETTEXT_DOMAIN "wesnoth-lib"
43 return conf->minimum_positioner_length;
53 return conf->maximum_positioner_length;
63 return conf->left_offset;
73 return conf->right_offset;
82 && coordinate.
y > 0 && coordinate.
y < static_cast<int>(
get_height());
88 if(static_cast<size_t>(coordinate.
x) >
get_width()
89 || static_cast<size_t>(coordinate.
y) >
get_height()) {
107 return static_cast<size_t>(coordinate.
x) <
get_width();
122 DBG_GUI_P <<
"Parsing horizontal scrollbar " <<
id <<
'\n';
124 load_resolutions<tresolution>(cfg);
177 , minimum_positioner_length(cfg[
"minimum_positioner_length"])
178 , maximum_positioner_length(cfg[
"maximum_positioner_length"])
179 , left_offset(cfg[
"left_offset"])
180 , right_offset(cfg[
"right_offset"])
184 "minimum_positioner_length"));
221 tbuilder_horizontal_scrollbar::tbuilder_horizontal_scrollbar(
const config& cfg)
233 <<
" placed horizontal scrollbar '" <<
id <<
"' with definition '"
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
GLuint GLuint GLsizei GLenum type
tresolution_definition_ptr config()
Base class of a resolution, contains the common keys for a resolution.
std::string missing_mandatory_wml_key(const std::string §ion, const std::string &key, const std::string &primary_key, const std::string &primary_value)
Returns a standard message for a missing wml key.
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.
#define VALIDATE(cond, message)
The macro to use for the validation of WML.
Contains the state info for a resolution.
std::vector< tstate_definition > state
config & child(const std::string &key, int n=0)
Returns the nth child with the given key, or a reference to an invalid config if there is none...
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.