BeginRow#
func BeginRow(bounds Rect, gap float32) RowBeginRow starts a horizontal stack inside bounds.
type Row struct {
// contains filtered or unexported fields
}Row lays out slots left to right with a fixed gap. It is a value type: slot bookkeeping stays on the stack and layout allocates nothing.
BeginRow#func BeginRow(bounds Rect, gap float32) RowBeginRow starts a horizontal stack inside bounds.
Even#func (r *Row) Even(n int) []RectEven returns n equal-width slots (divided over the remaining width, gaps between them) in one call.
Next#func (r *Row) Next(width float32) RectNext returns the next slot with the requested width. Slots are full height.
NextFlex#func (r *Row) NextFlex() RectNextFlex returns one slot filling all remaining width.
Remaining#func (r Row) Remaining() float32Remaining reports the unclaimed width, ignoring a trailing gap.