display

package
v0.0.0-...-cf16b6f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DotsPerMillimeter = 1.0 / 0.21

	Pixels = 128
)

Variables

Functions

func DecodeColorHookFunc

func DecodeColorHookFunc() mapstructure.DecodeHookFuncType

TextUnmarshallerHookFunc returns a DecodeHookFunc that applies strings to the UnmarshalText function, when the target type implements the encoding.TextUnmarshaler interface

func Draw

func Draw(ctx *canvas.Context) error

func LoadPages

func LoadPages(configPages []config.DisplayPage) (map[string]*Page, error)

Types

type Display

type Display struct {
	display.Drawer
	// contains filtered or unexported fields
}

func NewDisplay

func NewDisplay(cfg *config.Display) (*Display, error)

func (*Display) Play

func (d *Display) Play(pages map[string]*Page, s *store.Store) error

func (*Display) PlayGIF

func (d *Display) PlayGIF(rd io.Reader) error

type Page

type Page struct {
	config.DisplayPage

	Over *Page
	Next *Page
}

func (*Page) Draw

func (p *Page) Draw(c *canvas.Context, s *store.Store) error

func (*Page) Init

func (p *Page) Init() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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