类型 AvatarGroup

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

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

AvatarGroup incrementally paints overlapping avatars with deterministic spacing. The group count is caller-provided rather than inferred or stored.

构造函数

BeginAvatarGroup#

func BeginAvatarGroup(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, size AvatarSize) AvatarGroup

BeginAvatarGroup starts an overlapping avatar row at bounds.X/Y.

方法

Add#

func (group *AvatarGroup) Add(data AvatarData)

Add paints one avatar inside its 2px background ring (ring-2 ring-background) and advances by size minus the official 8px overlap.

AddCount#

func (group *AvatarGroup) AddCount(label string)

AddCount paints the official muted group-count fallback.