Type MessageGroup

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.

Constructors

BeginMessageGroup#

func BeginMessageGroup(theme ui.Theme, bounds ui.Rect) MessageGroup

BeginMessageGroup starts stacking message rows from the top of bounds.

Methods

Height#

func (group MessageGroup) Height() float32

Height is the stacked height of the rows reserved so far, without a trailing gap.

Row#

func (group *MessageGroup) Row(height float32) ui.Rect

Row reserves the next message row of the given height and returns its bounds.