driver

package
v0.0.0-...-be02a63 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkbox

type Checkbox interface {
	Bounds() image.Rectangle

	Checked() bool

	SetOnChange(func(checkbox Checkbox))
}

type GUI

type GUI interface {
	NewTextField(bounds image.Rectangle) TextField
	NewNumberField(bounds image.Rectangle) NumberField
	NewLabel(x, y int, text string) Label
	NewCheckbox(x, y int) Checkbox
}

type Label

type Label interface {
	SetColor(clr color.Color)
}

type NumberField

type NumberField interface {
	Bounds() image.Rectangle

	Value() float64
	SetValue(value float64)

	SetOnChange(func(numberTextField NumberField))
}

type TextField

type TextField interface {
	Bounds() image.Rectangle

	Value() string
	SetValue(value string)

	SetOnChange(func(textBox TextField))
	SetOnEnter(func(textBox TextField))
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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