WARNING: Cushy is in early alpha. This guide doubly so.

Grid

The Grid widget lays out a set of widgets in a two dimensional grid.

It is constructed with a primary orientation, which can be given a set of GridDimension to affect how the opposite orientation's elements are measured.

For example, to create a grid that resembles a traditional table, use Grid::from_rows to create the grid, and Grid::dimensions would be used to control each column's measurement strategy.

Alternatively when creating a grid with Grid::from_columns, Grid::dimensions is instead used to control each row's measurement strategy.