BeginButtonGroup#
func BeginButtonGroup(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, options []ButtonGroupOption) ButtonGroupBeginButtonGroup starts a grouped action declaration.
type ButtonGroup struct {
// contains filtered or unexported fields
}ButtonGroup paints related actions as one connected control. Each action takes its colors from the same recipe as a Button of its variant, so a group can hold any of them.
BeginButtonGroup#func BeginButtonGroup(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, options []ButtonGroupOption) ButtonGroupBeginButtonGroup starts a grouped action declaration.
Disabled#func (group ButtonGroup) Disabled() ButtonGroupDisabled renders every action as inert.
Paint#func (group ButtonGroup) Paint() ButtonGroupResultPaint draws the actions side by side, rounded only at the group's outer corners, with a hairline between neighbours and a shared outline when any of them is an outline button.
Vertical#func (group ButtonGroup) Vertical() ButtonGroupVertical stacks connected actions and collapses adjoining horizontal borders.