ui

package
v0.0.0-...-1449d46 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 8 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 {
	Width           float32
	Height          float32
	X               float32
	Y               float32
	Text            string
	FontSize        float64
	OnMouseDown     func()
	OnMouseDownHold func()
	// contains filtered or unexported fields
}

func (*Button) Draw

func (b *Button) Draw(screen *ebiten.Image)

func (*Button) Update

func (b *Button) Update()

type Component

type Component interface {
	Update()
	Draw(*ebiten.Image)
}

type Components

type Components []Component

func (Components) Draw

func (c Components) Draw(screen *ebiten.Image)

func (Components) Update

func (c Components) Update()

type Stroke

type Stroke struct {
	// contains filtered or unexported fields
}

type StrokeSource

type StrokeSource interface {
	Position() (int, int)
	IsJustReleased() bool
}

type TouchStrokeSource

type TouchStrokeSource struct {
	ID ebiten.TouchID
}

func (*TouchStrokeSource) IsJustReleased

func (t *TouchStrokeSource) IsJustReleased() bool

func (*TouchStrokeSource) Position

func (t *TouchStrokeSource) Position() (int, int)

Jump to

Keyboard shortcuts

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