Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputLine ¶
type InputLine struct {
Graphemes []textwidget.StyledGrapheme
Alignment bento.Alignment
}
type LineComposer ¶
type LineComposer interface {
NextLine() (WrappedLine, bool)
}
type LineTruncator ¶
type LineTruncator struct {
// contains filtered or unexported fields
}
func NewLineTruncator ¶
func NewLineTruncator(lines []InputLine, maxLineWidth int) LineTruncator
func (*LineTruncator) NextLine ¶
func (lt *LineTruncator) NextLine() (WrappedLine, bool)
NextLine implements LineComposer.
func (*LineTruncator) SetHorizontalOffset ¶
func (lt *LineTruncator) SetHorizontalOffset(horizontalOffset int)
type WordWrapper ¶
type WordWrapper struct {
// contains filtered or unexported fields
}
func NewWordWrapper ¶
func NewWordWrapper(lines []InputLine, maxLineWidth int, trim bool) WordWrapper
func (*WordWrapper) NextLine ¶
func (ww *WordWrapper) NextLine() (WrappedLine, bool)
NextLine implements LineComposer.
type WrappedLine ¶
type WrappedLine struct {
Line []textwidget.StyledGrapheme
Width int
Alignment bento.Alignment
}
Click to show internal directories.
Click to hide internal directories.