15 #define GETTEXT_DOMAIN "wesnoth-lib"
31 : maximum_rows_(maximum_rows)
32 , rows_(maximum_rows, 0)
33 , columns_(1,
std::make_pair(0, 0))
44 columns_.push_back(std::make_pair(0, 0));
65 columns_.push_back(std::make_pair(origin, 0));
73 return tpoint(width, height);
unsigned maximum_rows_
The maximum number of rows to use.
Placement helper for the horizontal list.
std::vector< int > rows_
Holds the heights of the rows.
tplacer_horizontal_list(const unsigned maximum_rows)
unsigned column_
The column to add an item to.
A class inherited from ttext_box that displays its input as stars.
virtual tpoint get_size() const
Gets the required size of all items.
unsigned row_
The row to add an item to.
virtual tpoint get_origin(const unsigned index) const
Gets the origin for an item.
virtual void initialise()
Initialises the placer.
GLenum GLenum GLvoid GLvoid * column
virtual void add_item(const tpoint &size)
Adds a item to be placed.
std::vector< std::pair< int, int > > columns_
Holds the column sizes.
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
GLenum GLenum GLvoid * row
GLint GLint GLint GLint GLint GLint GLsizei width
Contains the implementation details for lexical_cast and shouldn't be used directly.