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