components

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Color color.Color
}

func (*Box) HandleDraw

func (b *Box) HandleDraw(screen *ebiten.Image, frame image.Rectangle)

type Button

type Button struct {
	Text    string
	OnClick func()
	// contains filtered or unexported fields
}

func (*Button) HandleDraw

func (b *Button) HandleDraw(screen *ebiten.Image, frame image.Rectangle)

func (*Button) HandleMouseEnter added in v2.2.0

func (b *Button) HandleMouseEnter(x, y int) bool

func (*Button) HandleMouseLeave added in v2.2.0

func (b *Button) HandleMouseLeave()

func (*Button) HandlePress

func (b *Button) HandlePress(x, y int, t ebiten.TouchID)

func (*Button) HandleRelease

func (b *Button) HandleRelease(x, y int, isCancel bool)

Jump to

Keyboard shortcuts

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