Back to godoc.org

Package menu

v1.0.1
Latest Go to latest

The latest major version is .

Published: Dec 13, 2016 | License: MIT | Module: github.com/ranchblt/geometry-jumper

Index

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()

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier