Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Functions
uni20::display::width Namespace Reference

Functions

column_width fit (std::size_t minimum=1)
 Request a non-greedy column that starts at a minimum width and grows when row values need it.
 
column_width fixed (std::size_t cells)
 Request an exact display-cell width for a streaming table column.
 
column_width share (std::size_t weight=1, std::size_t minimum=1)
 Request a flexible streaming table column with the given share weight.
 

Function Documentation

◆ fit()

column_width uni20::display::width::fit ( std::size_t  minimum = 1)

Request a non-greedy column that starts at a minimum width and grows when row values need it.

Fit columns do not receive terminal slack during initial layout. When a later row needs more room, they grow by using unused space or by shrinking shared-width columns toward their minimum widths.

◆ fixed()

column_width uni20::display::width::fixed ( std::size_t  cells)

Request an exact display-cell width for a streaming table column.

◆ share()

column_width uni20::display::width::share ( std::size_t  weight,
std::size_t  minimum 
)

Request a flexible streaming table column with the given share weight.