Back to

Package menu

Latest Go to latest

The latest major version is .

Published: Dec 13, 2016 | License: MIT | Module:


type Menu interface {
	Selected() string

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