goi

package module
v0.0.0-...-65e9a4a Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 2 Imported by: 0

README

goi

A UI library in Go!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Component

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

type Label

type Label struct {
	Text string
	// contains filtered or unexported fields
}

func NewLabel

func NewLabel(text string) (*Label, error)

func (*Label) SetText

func (l *Label) SetText(newText string)

type TabSwitcher

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

func NewTabSwitcher

func NewTabSwitcher() (*TabSwitcher, error)

func NewTabSwitcherVertical

func NewTabSwitcherVertical() (*TabSwitcher, error)

func (*TabSwitcher) AppendTab

func (t *TabSwitcher) AppendTab(title string, c Component) error

AddTab adds a tab to the tab switcher

type Window

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

func NewWindow

func NewWindow(title string, multiwindow ...bool) (*Window, error)

NewWindow makes a new window. If you want to have multiple windows in your application, pass in a boolean to multiwindow

func (*Window) SetChild

func (w *Window) SetChild(child Component)

func (*Window) SetDefaultSize

func (w *Window) SetDefaultSize(width, height int)

func (*Window) Show

func (w *Window) Show()

Jump to

Keyboard shortcuts

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