text

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(t rich.Text) rich.Text

Bold is shorthand for rich.Text(t).Bold()

func Center

func Center() css.Rule

Center aligns the text to to the center.

func In

func In(c color.Color, t rich.Text) rich.Text

In is shorthand for rich.Text(t).In(c)

func Italic

func Italic(t rich.Text) rich.Text

Italic is shorthand for rich.Text(t).Italic()

func Left

func Left() css.Rule

Left aligns the text to to the left.

func New

func New(options ...seed.Option) seed.Seed

New returns a new text widget.

func Right() css.Rule

Right aligns the text to to the right.

func Set

func Set(lines ...rich.Text) seed.Option

Set sets the text content of the text to the given formatted lines, each argument is seperated by a newline.

func SetColor

func SetColor(c color.Color) css.Rule

SetColor sets the color of the text.

func SetLineHeight

func SetLineHeight(height float64) css.Rule

SetLineHeight sets the line-height of the text.

func SetSize

func SetSize(s units.Unit) css.Rule

SetSize sets the font-size of the text.

func SetString

func SetString(value string) seed.Option

SetString sets the text from the given string.

func SetStringTo

func SetStringTo(value client.String) seed.Option

SetStringTo sets the text content of the text.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL