BeginGrid#
func BeginGrid(bounds Rect, spec GridSpec) GridBeginGrid starts a grid inside bounds.
type Grid struct {
// contains filtered or unexported fields
}Grid hands out the cells of a GridSpec left to right, wrapping at the container edge. It is a value type: layout allocates nothing.
BeginGrid#func BeginGrid(bounds Rect, spec GridSpec) GridBeginGrid starts a grid inside bounds.
Columns#func (g Grid) Columns() intColumns reports how many cells share one row.
Next#func (g *Grid) Next() RectNext returns the next cell. Cells keep coming past the container height; the caller owns scrolling and clipping.