Documentation
¶
Index ¶
- func AppendTextSpans(text *Text, spans ...Span)
- type Line
- func (l Line) Center() Line
- func (l Line) Left() Line
- func (l Line) Print(buffer *bento.Buffer, x, y, maxWidth int) (int, int)
- func (l Line) Render(area bento.Rect, buffer *bento.Buffer)
- func (l Line) Right() Line
- func (l Line) String() string
- func (l Line) StyledGraphemes(baseStyle bento.Style) []StyledGrapheme
- func (l Line) Width() int
- func (l Line) WithAlignment(alignment bento.Alignment) Line
- func (l Line) WithSpans(spans ...Span) Line
- func (l Line) WithSpansStr(spans ...string) Line
- func (l Line) WithStyle(style bento.Style) Line
- type Lines
- type Span
- func (s Span) Print(buffer *bento.Buffer, x, y, maxWidth int) (int, int)
- func (s Span) Render(area bento.Rect, buffer *bento.Buffer)
- func (s Span) String() string
- func (s Span) StyledGraphemes(style bento.Style) []StyledGrapheme
- func (s Span) Width() int
- func (s Span) WithStyle(style bento.Style) Span
- func (s Span) WithStylePatch(patch bento.Style) Span
- type StyledGrapheme
- type Text
- func (t Text) Center() Text
- func (t Text) Height() int
- func (t Text) Left() Text
- func (t Text) Render(area bento.Rect, buffer *bento.Buffer)
- func (t Text) Right() Text
- func (t Text) String() string
- func (t Text) Width() int
- func (t Text) WithAlignment(alignment bento.Alignment) Text
- func (t Text) WithLines(lines ...Line) Text
- func (t Text) WithLinesStr(lines ...string) Text
- func (t Text) WithStyle(style bento.Style) Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendTextSpans ¶
Types ¶
type Line ¶
func NewLineStr ¶
func (Line) StyledGraphemes ¶
func (l Line) StyledGraphemes(baseStyle bento.Style) []StyledGrapheme
func (Line) WithSpansStr ¶
type Span ¶
func (Span) StyledGraphemes ¶
func (s Span) StyledGraphemes(style bento.Style) []StyledGrapheme
type Text ¶
func NewTextStr ¶
func (Text) WithLinesStr ¶
Click to show internal directories.
Click to hide internal directories.