GGUI::GGColumns struct

Grid columns: a count of equal columns (.Columns = 8), or a size per column (.Columns = { GGSize::Fixed(120), GGSize::Grow() }). Fit sizes a column to its widest cell.

Public static variables

static size_t MaxSized constexpr
the most columns with their own sizes

Constructors, destructors, conversion operators

GGColumns() defaulted constexpr
One column.
GGColumns(int count) constexpr
count equal columns, 1 to 255.
GGColumns(std::initializer_list<GGSize> sizes) constexpr
A column per size, up to MaxSized.

Public variables

uint8_t Count
how many columns
uint8_t Sized
how many have their own size: all or none
GGSize Sizes
by column, when sized

Friends

auto operator==(const GGColumns&, const GGColumns&) -> bool defaulted
every member equal