Documentation
¶
Index ¶
- func Middlewares() []func() interface{}
- func RegisterMiddleware(v func() interface{})
- func TintColor(img image.Image, color color.Color) image.Image
- type StyledText
- func (st *StyledText) At(a int) *text.Style
- func (st *StyledText) MarshalProtobuf() *pbtext.StyledText
- func (st *StyledText) Set(s *text.Style, start, end int)
- func (st *StyledText) Size(min layout.Point, max layout.Point, maxLines int) layout.Point
- func (st *StyledText) Text() *text.Text
- func (st *StyledText) Update(s *text.Style, start, end int)
- type Ticker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middlewares ¶
func Middlewares() []func() interface{}
func RegisterMiddleware ¶
func RegisterMiddleware(v func() interface{})
RegisterMiddleware adds v to the list of default middleware that Root starts with.
Types ¶
type StyledText ¶
type StyledText struct {
// contains filtered or unexported fields
}
func NewStyledText ¶
func NewStyledText(t *text.Text) *StyledText
func (*StyledText) MarshalProtobuf ¶
func (st *StyledText) MarshalProtobuf() *pbtext.StyledText
func (*StyledText) Text ¶
func (st *StyledText) Text() *text.Text
Click to show internal directories.
Click to hide internal directories.