gui

package
v0.0.0-...-3a3bf57 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(c Control)

func Main

func Main(f func()) error

func QueueMain

func QueueMain(f func())

Types

type Box

type Box interface {
	Control
	Append(Control, bool)
	RemoveAt(int)
	SetPadded(bool)
	SetScrollable(Scrollable)
}

func NewHorizontalBox

func NewHorizontalBox() Box

func NewVerticalBox

func NewVerticalBox() Box

type Button

type Button interface {
	Control
	OnClick(func())
}

func NewButton

func NewButton(text string) Button

type Control

type Control interface {
	// contains filtered or unexported methods
}

type Entry

type Entry interface {
	Control
	Text() string
	SetText(string)
	OnChange(func())
}

func NewEntry

func NewEntry() Entry

func NewMultiLineEntry

func NewMultiLineEntry() Entry

type Label

type Label interface {
	Control
}

func NewLabel

func NewLabel(text string) Label

type Scrollable

type Scrollable int
const (
	ScrollableNever Scrollable = iota
	ScrollableOverflow
	ScrollableAlways
)

type Tab

type Tab interface {
	Control
	Append(string, Control)
	InsertAt(string, int, Control)
	RemoveAt(int)
	SetMargined(int, bool)
}

func NewTab

func NewTab() Tab

type Window

type Window interface {
	SetChild(Control)
	Show()
	SetMargined(bool)
	SetTitle(string)
}
var MainWindow Window

func NewWindow

func NewWindow(title string, width, height int) Window

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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