Documentation ¶
Index ¶
- type Circle
- type CircleBL
- type CircleBR
- type CircleTL
- type CircleTR
- type Cross
- type Dot
- type Free
- type Img
- func NewGif(graphic *Graphic, path *string, targetSize Point) *Img
- func NewGifFromFiles(graphic *Graphic, targetSize Point, imgDuration time.Duration, paths ...string) *Img
- func NewImg(graphic *Graphic, path *string, targetSize Point) *Img
- func NewLazyImg(graphic *Graphic, path *string, targetSize Point, afterEffect func(*Img)) *Img
- func NewPngFromPaths(graphic *Graphic, targetSize Point, paths ...string) *Img
- func (i *Img) Draw(canvas Canvas) error
- func (i *Img) GetActiveImage() *image.Image
- func (i *Img) GetMask() image.Image
- func (i *Img) Images() *[]image.Image
- func (i *Img) Rotate(angle float64)
- func (i *Img) SetActiveImage(activeImage *image.Image)
- func (i *Img) Update(elapsedBetweenUpdate time.Duration) bool
- type Line
- type Panel
- type Rectangle
- type Ring
- type ScrollingText
- type Text
- type TextPanel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircleBL ¶
type CircleBL struct { *Graphic // contains filtered or unexported fields }
func NewCircleBL ¶
type CircleBR ¶
type CircleBR struct { *Graphic // contains filtered or unexported fields }
func NewCircleBR ¶
type CircleTL ¶
type CircleTL struct { *Graphic // contains filtered or unexported fields }
func NewCircleTL ¶
type CircleTR ¶
type CircleTR struct { *Graphic // contains filtered or unexported fields }
func NewCircleTR ¶
type Cross ¶
type Cross struct { *Graphic // contains filtered or unexported fields }
func (*Cross) GetPosition ¶
func (c *Cross) GetPosition() Point
func (*Cross) SetPosition ¶
func (c *Cross) SetPosition(position Point)
type Dot ¶
type Dot struct { *Graphic // contains filtered or unexported fields }
func (*Dot) GetPosition ¶
func (d *Dot) GetPosition() Point
func (*Dot) SetPosition ¶
func (d *Dot) SetPosition(position Point)
type Img ¶
type Img struct { *Graphic // contains filtered or unexported fields }
func NewGifFromFiles ¶
func NewLazyImg ¶
func NewPngFromPaths ¶
func (*Img) GetActiveImage ¶
func (*Img) SetActiveImage ¶
type Rectangle ¶
type Rectangle struct { *Graphic // contains filtered or unexported fields }
func NewRectangle ¶
type ScrollingText ¶
type ScrollingText struct {
// contains filtered or unexported fields
}
func NewScrollingText ¶
func NewScrollingText(graphic *components.Graphic, c canvas.Canvas, txt string, f fonts.MatrixFont, position canvas.Point, visibleArea image.Rectangle, duration time.Duration) *ScrollingText
func (*ScrollingText) SetText ¶
func (st *ScrollingText) SetText(label string)
type TextPanel ¶
type TextPanel struct {
// contains filtered or unexported fields
}
func NewTextPanel ¶
Click to show internal directories.
Click to hide internal directories.