ui

package
v0.0.0-...-a8eda97 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 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 Button

type Button struct {
	X, Y, Width int
	Action      func()
	Text        string
	Image       *ebiten.Image
	// contains filtered or unexported fields
}

func NewButton

func NewButton(x, y, width int, text string, font font.Face, image *ebiten.Image, action func()) *Button

func (*Button) Draw

func (b *Button) Draw(screen *ebiten.Image)

func (*Button) Update

func (b *Button) Update(input *joystick.Input)

type Component

type Component interface {
	Draw(*ebiten.Image)
	Update(*joystick.Input)
}

Jump to

Keyboard shortcuts

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