Table.Row

Row

Members

Functions

display
void display(Output output, size_t[] column_widths, mstring content_buf, mstring spacing_buf)

Displays this row to the specified output, terminated with a newline.

length
size_t length()
opApply
int opApply(int delegate(ref Cell cell) dg)

foreach iterator over the cells in this row.

opApply
int opApply(int delegate(ref size_t i, ref Cell cell) dg)

foreach iterator over the cells in this row and their indices.

opIndex
Cell* opIndex(size_t col)

Gets the cell in this row at the specified column.

set
void set(Cell[] cells)

Sets the cells in this row. The passed list must be of equal length to the length of this row.

setDivider
void setDivider(size_t empty_cells_at_left)

Sets all the cells in this row to be dividers, optionally with some empty cells at the left.

setWidth
void setWidth(size_t width)

Sets the number of cells in this row.

Structs

Cell
struct Cell

Cell

Variables

cells
Cell[] cells;

List of cells in row

Meta