internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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.

func TintColor

func TintColor(img image.Image, color color.Color) image.Image

Types

type StyledText

type StyledText struct {
	// contains filtered or unexported fields
}

func NewStyledText

func NewStyledText(t *text.Text) *StyledText

func (*StyledText) At

func (st *StyledText) At(a int) *text.Style

func (*StyledText) MarshalProtobuf

func (st *StyledText) MarshalProtobuf() *pbtext.StyledText

func (*StyledText) Set

func (st *StyledText) Set(s *text.Style, start, end int)

func (*StyledText) Size

func (st *StyledText) Size(min layout.Point, max layout.Point, maxLines int) layout.Point

func (*StyledText) Text

func (st *StyledText) Text() *text.Text

func (*StyledText) Update

func (st *StyledText) Update(s *text.Style, start, end int)

type Ticker

type Ticker struct {
	// contains filtered or unexported fields
}

func NewTicker

func NewTicker(duration time.Duration) *Ticker

func (*Ticker) Notify

func (t *Ticker) Notify(f func()) comm.Id

func (*Ticker) Signal

func (t *Ticker) Signal()

func (*Ticker) Stop

func (t *Ticker) Stop()

func (*Ticker) Unnotify

func (t *Ticker) Unnotify(key comm.Id)

func (*Ticker) Value

func (t *Ticker) Value() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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