button

package
v0.0.0-...-40e17fa Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

func New

func New(x, y, w, h int, message string, action func(), source func() bool) *Button

func (*Button) Draw

func (b *Button) Draw() (*ebiten.Image, *ebiten.DrawImageOptions)

func (*Button) Height

func (b *Button) Height() int

func (*Button) LeftMouseButtonPress

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

func (*Button) LeftMouseButtonRelease

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

Jump to

Keyboard shortcuts

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