Documentation ¶
Index ¶
- Variables
- type ScreenBank
- func (sb *ScreenBank) Button1Ex(e europi.Hardware, value bool, deltaTime time.Duration)
- func (sb *ScreenBank) Button1Long(e europi.Hardware, deltaTime time.Duration)
- func (sb *ScreenBank) Button2Ex(e europi.Hardware, value bool, deltaTime time.Duration)
- func (sb *ScreenBank) Button2Long(e europi.Hardware, deltaTime time.Duration)
- func (sb *ScreenBank) Current() *entryWrapper[europi.Hardware]
- func (sb *ScreenBank) CurrentName() string
- func (sb *ScreenBank) Goto(idx int)
- func (sb *ScreenBank) GotoNamed(name string)
- func (sb *ScreenBank) Next()
- func (sb *ScreenBank) Paint(e europi.Hardware, deltaTime time.Duration)
- func (sb *ScreenBank) PaintLogo(e europi.Hardware, deltaTime time.Duration)
- func (sb *ScreenBank) Start(e europi.Hardware)
- type ScreenBankOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultFont = ¬oemoji.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) Button1Long ¶
func (sb *ScreenBank) Button1Long(e europi.Hardware, 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) PaintLogo ¶
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)
Click to show internal directories.
Click to hide internal directories.