ui

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	*Block
	// plot data
	Data           []float64
	UpperLimit     float64
	DrawUpperLimit bool

	// label
	LabelHeader     string
	LabelData       string
	LabelUpperLimit string

	// color
	DataColor      Color
	LimitColor     Color
	LabelNameColor Color
}

func NewGraph

func NewGraph() *Graph

func (*Graph) Draw

func (self *Graph) Draw(buf *Buffer)

func (*Graph) Reset

func (self *Graph) Reset()

type Table

type Table struct {
	*Block

	Header       []string
	ColumnWidths []int
	Rows         [][]string
	Cursor       bool
	CursorColor  Color

	SelectedRow int
	// contains filtered or unexported fields
}

func NewTable

func NewTable() *Table

func (*Table) Draw

func (self *Table) Draw(buf *Buffer)

func (*Table) Reset

func (self *Table) Reset(title string, header []string, width []int)

func (*Table) ScrollDown

func (self *Table) ScrollDown()

func (*Table) ScrollUp

func (self *Table) ScrollUp()

type TextField

type TextField struct {
	*Block

	Text      string
	TextStyle Style
}

func NewTextField

func NewTextField() *TextField

func (*TextField) Draw

func (self *TextField) Draw(buf *Buffer)

Jump to

Keyboard shortcuts

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