类型 KbdGroup

API 文档由 Go 源码生成,内容为英文。

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

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

构造函数

BeginKbdGroup#

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

BeginKbdGroup starts an allocation-free keycap row.

方法

Add#

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

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