ui

package
v0.0.0-...-5fae68c Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed ui.png
	UI_png []byte
)

Functions

This section is empty.

Types

type Button

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

func NewButton

func NewButton(rect image.Rectangle, text string, onClick func(b *Button)) *Button

func (*Button) Draw

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

func (*Button) SetOnClick

func (b *Button) SetOnClick(f func(b *Button))

func (*Button) Update

func (b *Button) Update()

type TextField

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

func NewTextField

func NewTextField(bounds image.Rectangle, multilines bool, text string) *TextField

func (*TextField) Blur

func (t *TextField) Blur()

func (*TextField) Contains

func (t *TextField) Contains(x, y int) bool

func (*TextField) Draw

func (t *TextField) Draw(screen *ebiten.Image)

func (*TextField) Focus

func (t *TextField) Focus()

func (*TextField) SetSelectionStartByCursorPosition

func (t *TextField) SetSelectionStartByCursorPosition(x, y int) bool

func (*TextField) Text

func (t *TextField) Text() string

func (*TextField) Update

func (t *TextField) Update() error

Jump to

Keyboard shortcuts

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