BeginMessageGroup#
func BeginMessageGroup(theme ui.Theme, bounds ui.Rect) MessageGroupBeginMessageGroup starts stacking message rows from the top of bounds.
API 文档由 Go 源码生成,内容为英文。
type MessageGroup struct {
// contains filtered or unexported fields
}MessageGroup stacks the rows of consecutive messages MessageGroupGap apart. It only measures; each row is then handed to Message.
BeginMessageGroup#func BeginMessageGroup(theme ui.Theme, bounds ui.Rect) MessageGroupBeginMessageGroup starts stacking message rows from the top of bounds.
Height#func (group MessageGroup) Height() float32Height is the stacked height of the rows reserved so far, without a trailing gap.
Row#func (group *MessageGroup) Row(height float32) ui.RectRow reserves the next message row of the given height and returns its bounds.