The placement class for a horizontal list.
virtual void initialize()
Initialises the placer.
std::vector< std::pair< int, int > > columns_
Holds the column sizes.
virtual point get_origin(const unsigned index) const
Gets the origin for an item.
std::vector< int > rows_
Holds the heights of the rows.
placer_horizontal_list(const unsigned maximum_rows)
virtual void add_item(const point &size)
Adds a item to be placed.
unsigned row_
The row to add an item to.
virtual point get_size() const
Gets the required size of all items.
unsigned column_
The column to add an item to.
unsigned maximum_rows_
The maximum number of rows to use.
Base class for the placement helper.
Contains the implementation details for lexical_cast and shouldn't be used directly.
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
Base class for the placement helper.