ui

package
v0.0.0-...-654b2c4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewUI

func NewUI(width, height, scale int, windowTitle string, toneFrequency int, fgColour, bgColour string) (*UI, error)

func (*UI) Draw

func (d *UI) Draw(screen *ebiten.Image)

func (*UI) GetPressedKeys

func (d *UI) GetPressedKeys() []uint8

func (*UI) Layout

func (d *UI) Layout(outsideWidth, outsideHeight int) (int, int)

func (*UI) PublishNewDisplay

func (d *UI) PublishNewDisplay(inp [32][64]bool)

func (*UI) Start

func (d *UI) Start() error

func (*UI) StartTone

func (d *UI) StartTone()

func (*UI) StopTone

func (d *UI) StopTone()

func (*UI) Update

func (*UI) Update() error

Jump to

Keyboard shortcuts

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