15 #define GETTEXT_DOMAIN "wesnoth-lib"
37 return conf->minimum_positioner_length;
46 return conf->maximum_positioner_length;
55 return conf->top_offset;
64 return conf->bottom_offset;
73 && coordinate.
x > 0 && coordinate.
x < static_cast<int>(
get_width());
79 if(static_cast<size_t>(coordinate.
x) >
get_width()
80 || static_cast<size_t>(coordinate.
y) >
get_height()) {
97 return static_cast<size_t>(coordinate.
y) <
get_height();
112 DBG_GUI_P <<
"Parsing vertical scrollbar " <<
id <<
'\n';
114 load_resolutions<tresolution>(cfg);
167 , minimum_positioner_length(cfg[
"minimum_positioner_length"])
168 , maximum_positioner_length(cfg[
"maximum_positioner_length"])
169 , top_offset(cfg[
"top_offset"])
170 , bottom_offset(cfg[
"bottom_offset"])
174 "minimum_positioner_length"));
201 tbuilder_vertical_scrollbar::tbuilder_vertical_scrollbar(
const config& cfg)
213 <<
" placed vertical 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.