Expand description
Grid widget: children placed left to right, top to bottom in equal cells.
The cell arithmetic lives in the pure function grid_cells, which never
panics and never returns a non-finite coordinate, whatever the bounds,
column count or gap. Grid lays each child out with its cell as bounds.
Contract: contracts/present-grid-widget-v1.yaml.
Structs§
- Grid
- Grid widget: a fixed number of equal-width columns.
Functions§
- grid_
cells - Cells of a grid with
columnsequal-width columns insidebounds. - grid_
cells_ with - Like
grid_cells, with an optional fixed row height.