BeginFieldGroup#
func BeginFieldGroup(theme ui.Theme, bounds ui.Rect) FieldStackBeginFieldGroup starts a field group: rows 28 apart (gap-7).
type FieldStack struct {
// contains filtered or unexported fields
}FieldStack hands out the rows of a FieldSet or a FieldGroup top to bottom with the gap Vega puts between them. It only lays out: every row is a Field (or a legend, a separator, a nested group) the caller paints into it.
set := components.BeginFieldGroup(theme, area)
name := components.BeginField(canvas, theme, set.Next(fieldHeight))BeginFieldGroup#func BeginFieldGroup(theme ui.Theme, bounds ui.Rect) FieldStackBeginFieldGroup starts a field group: rows 28 apart (gap-7).
BeginFieldSet#func BeginFieldSet(theme ui.Theme, bounds ui.Rect) FieldStackBeginFieldSet starts a field set: rows 24 apart (gap-6 at the default density, 1.5 padding units).
Height#func (stack FieldStack) Height() float32Height is the height of the rows handed out so far, gaps included.
Nested#func (stack FieldStack) Nested(theme ui.Theme, bounds ui.Rect) FieldStackNested is the stack for a group inside a group: rows 16 apart (gap-4).
Next#func (stack *FieldStack) Next(height float32) ui.RectNext returns the next row, height high and as wide as the stack, below the previous one and a gap further down.
Tight#func (stack FieldStack) Tight(theme ui.Theme) FieldStackTight switches the stack to the 12 pixel gap (gap-3) of a set that holds a checkbox or radio group.