ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigView

type ConfigView struct {
	*ui.Grid
	// contains filtered or unexported fields
}

ConfigView renders the configuration.

func NewConfigView

func NewConfigView(cfg *data.Config) *ConfigView

NewConfigView constructs a new configuration view

func (*ConfigView) Draw

func (cv *ConfigView) Draw(b *ui.Buffer)

func (*ConfigView) SetRect

func (cv *ConfigView) SetRect(x1, y1, x2, y2 int)

type Window

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

Window is the main container for displaying.

func NewWindow

func NewWindow(cfg *data.Config) *Window

NewWindow constructs a new window.

func (*Window) Render

func (w *Window) Render()

Render renders the window.

func (*Window) Run

func (w *Window) Run() error

Run starts the process.

func (*Window) SetRect

func (w *Window) SetRect(x1, y1, x2, y2 int)

SetRect rearranges the window.

Jump to

Keyboard shortcuts

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