Type KbdGroup

type KbdGroup struct {
	// contains filtered or unexported fields
}

KbdGroup incrementally paints keycaps with the source recipe's compact gap.

Constructors

BeginKbdGroup#

func BeginKbdGroup(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) KbdGroup

BeginKbdGroup starts an allocation-free keycap row.

Methods

Add#

func (group *KbdGroup) Add(label string) ui.Rect

Add paints one keycap and advances by the Vega one-space gap.