menu

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu interface {
	Selected() string
	Draw(*ebiten.Image)
	Update()
}

type Option

type Option struct {
	Text string
}

type Regular

type Regular struct {
	BackgroundImage *ebiten.Image
	Options         []*Option
	KeyboardWrapper *keyboard.KeyboardWrapper

	Height int
	Width  int
	Font   *truetype.Font
	// contains filtered or unexported fields
}

func (*Regular) Draw

func (r *Regular) Draw(screen *ebiten.Image)

func (*Regular) Dst

func (r *Regular) Dst(i int) (x0, y0, x1, y1 int)

func (*Regular) Len

func (r *Regular) Len() int

func (*Regular) Selected

func (r *Regular) Selected() string

Selected gives the text of the currently selected option

func (*Regular) Src

func (r *Regular) Src(i int) (x0, y0, x1, y1 int)

func (*Regular) Update

func (r *Regular) Update()

Jump to

Keyboard shortcuts

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