类型 MessageRegions

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

type MessageRegions struct {
	Avatar  ui.Rect
	Header  ui.Rect
	Content ui.Rect
	Footer  ui.Rect
}

MessageRegions exposes retained slots a caller may compose into.

构造函数

Message#

func Message(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, data MessageData) MessageRegions

Message paints optional avatar/header/footer metadata and returns the content slot. It does not own body text or implicitly choose a bubble variant.