screenbank

package
v0.0.0-...-0cb7d88 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFont = &notoemoji.NotoEmojiRegular12pt
)

Functions

This section is empty.

Types

type ScreenBank

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

func NewScreenBank

func NewScreenBank(opts ...ScreenBankOption) (*ScreenBank, error)

func (*ScreenBank) Button1Ex

func (sb *ScreenBank) Button1Ex(e europi.Hardware, value bool, deltaTime time.Duration)

func (*ScreenBank) Button1Long

func (sb *ScreenBank) Button1Long(e europi.Hardware, deltaTime time.Duration)

func (*ScreenBank) Button2Ex

func (sb *ScreenBank) Button2Ex(e europi.Hardware, value bool, deltaTime time.Duration)

func (*ScreenBank) Button2Long

func (sb *ScreenBank) Button2Long(e europi.Hardware, deltaTime time.Duration)

func (*ScreenBank) Current

func (sb *ScreenBank) Current() *entryWrapper[europi.Hardware]

func (*ScreenBank) CurrentName

func (sb *ScreenBank) CurrentName() string

func (*ScreenBank) Goto

func (sb *ScreenBank) Goto(idx int)

func (*ScreenBank) GotoNamed

func (sb *ScreenBank) GotoNamed(name string)

func (*ScreenBank) Next

func (sb *ScreenBank) Next()

func (*ScreenBank) Paint

func (sb *ScreenBank) Paint(e europi.Hardware, deltaTime time.Duration)
func (sb *ScreenBank) PaintLogo(e europi.Hardware, deltaTime time.Duration)

func (*ScreenBank) Start

func (sb *ScreenBank) Start(e europi.Hardware)

type ScreenBankOption

type ScreenBankOption func(sb *ScreenBank) error

func WithScreen

func WithScreen(name string, logo string, screen any) ScreenBankOption

WithScreen sets up a new screen in the chain

logo is the emoji to use (see https://github.com/tinygo-org/tinyfont/blob/release/notoemoji/NotoEmoji-Regular-12pt.go)

Jump to

Keyboard shortcuts

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