Row.Cell

Cell

Members

Enums

Type
enum Type

Cell types enum

Functions

display
void display(Output output, size_t width, mstring content_buf, mstring spacing_buf)

Displays the cell to the specified output.

setBackgroundColour
typeof(&this) setBackgroundColour(Terminal.Colour colour)

Sets the background colour of this cell

setBinaryMetric
typeof(&this) setBinaryMetric(ulong num, cstring metric_string)

Sets the cell to contain an integer scaled into a binary metric representation (Ki, Mi, Gi, Ti, etc).

setDecimalMetric
typeof(&this) setDecimalMetric(ulong num, cstring metric_string)

Sets the cell to contain an integer scaled into a decimal metric representation (K, M, G, T, etc).

setDivider
typeof(&this) setDivider()

Sets the cell to contain a horizontal divider.

setEmpty
typeof(&this) setEmpty()

Sets the cell to contain nothing.

setFloat
typeof(&this) setFloat(double num)

Sets the cell to contain a float.

setForegroundColour
typeof(&this) setForegroundColour(Terminal.Colour colour)

Sets the foreground colour of this cell

setInteger
typeof(&this) setInteger(ulong num, bool use_thousands_separator)

Sets the cell to contain an integer.

setMerged
typeof(&this) setMerged()

Sets the cell to be merged with the cell to its right.

setString
typeof(&this) setString(cstring str)

Sets the cell to contain a string.

width
size_t width()

Manifest constants

inter_cell_spacing
enum inter_cell_spacing;

Number of characters in-between each cell

Static functions

BinaryMetric
Cell BinaryMetric(ulong integer, cstring metric_string)

Static opCall method to create a cell containing an integer scaled into a binary metric representation (Ki, Mi, Gi, Ti, etc).

DecimalMetric
Cell DecimalMetric(ulong integer, cstring metric_string)

Static opCall method to create a cell containing an integer scaled into a decimal metric representation (K, M, G, T, etc).

Empty
Cell Empty()

Static opCall method to create an empty cell.

Float
Cell Float(double floating)

Static opCall method to create a cell containing a float.

Integer
Cell Integer(ulong integer, bool use_thousands_separator)

Static opCall method to create a cell containing an integer.

Merged
Cell Merged()

Static opCall method to create a cell merged with the one to the right.

String
Cell String(cstring str)

Static opCall method to create a cell containing a string.

Unions

Contents
union Contents

Cell contents union

Variables

contents
Contents contents;
Undocumented in source.
metric_string
mstring metric_string;

Metric postfix string (used by BinaryMetric and DecimalMetric cell types)

type
Type type;
Undocumented in source.

Meta