GridTrack

The size rule for one column or row of a Grid.

Build with the factory helpers: GridTrack.autoSize (fit the content), GridTrack.pixels(n) (a fixed width/height), or GridTrack.percent(w) (a weighted share of the leftover space — the weights of all percent tracks are summed, so two percent(50) tracks split the remainder evenly, exactly like two percent(1) tracks would).

Members

Static functions

autoSize
GridTrack autoSize()

A track sized to its content.

percent
GridTrack percent(int weight)

A track taking a weight-proportioned share of the leftover space.

pixels
GridTrack pixels(int px)

A track of fixed pixel size.

Variables

kind
GridTrackKind kind;

The sizing rule.

value
int value;

Pixels for absolute, weight for percent, ignored for autoSize.

Meta