类型 AvatarData

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

type AvatarData struct {
	Name     string
	Initials string
	Image    ui.Bitmap
	Tint     ui.Color
	Status   AvatarStatus
	Size     AvatarSize
}

AvatarData is the replaceable data boundary for an avatar. Image is a caller-decoded bitmap (Bitmap.ID and Version identify it for the renderer's texture cache); it is center-cropped to a circle like AvatarImage's object-cover. When Image is empty or invalid, Initials or a geometric fallback is painted, like AvatarFallback.