compact

package
v0.0.0-...-69999d2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compact

type Compact struct {
	Status *Status
	ID     *TextCol
	State  *TextCol
	Name   *TextCol
	Desc   *TextCol
	X, Y   int
	Width  int
	Height int
}

func NewCompact

func NewCompact(t *tes.Task) *Compact

func (*Compact) Buffer

func (row *Compact) Buffer() ui.Buffer

func (*Compact) GetHeight

func (row *Compact) GetHeight() int

func (*Compact) SetWidth

func (row *Compact) SetWidth(width int)

func (*Compact) SetX

func (row *Compact) SetX(x int)

func (*Compact) SetY

func (row *Compact) SetY(y int)

type Grid

type Grid struct {
	ui.GridBufferer
	Rows   []ui.GridBufferer
	X, Y   int
	Width  int
	Height int
	Offset int // starting row offset
}

func NewGrid

func NewGrid() *Grid

func (*Grid) AddRows

func (cg *Grid) AddRows(rows ...ui.GridBufferer)

func (*Grid) Align

func (cg *Grid) Align()

func (*Grid) Buffer

func (cg *Grid) Buffer() ui.Buffer

func (*Grid) Clear

func (cg *Grid) Clear()

func (*Grid) GetHeight

func (cg *Grid) GetHeight() int

func (*Grid) MaxRows

func (cg *Grid) MaxRows() int

func (*Grid) SetWidth

func (cg *Grid) SetWidth(w int)

func (*Grid) SetX

func (cg *Grid) SetX(x int)

func (*Grid) SetY

func (cg *Grid) SetY(y int)
type Header struct {
	X, Y   int
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewHeader

func NewHeader() *Header

func (*Header) Buffer

func (ch *Header) Buffer() ui.Buffer

func (*Header) GetHeight

func (ch *Header) GetHeight() int

func (*Header) SetWidth

func (ch *Header) SetWidth(w int)

func (*Header) SetX

func (ch *Header) SetX(x int)

func (*Header) SetY

func (ch *Header) SetY(y int)

type Status

type Status struct {
	*ui.Par
}

Status indicator

func NewStatus

func NewStatus() *Status

func (*Status) Set

func (s *Status) Set(val string)

type TextCol

type TextCol struct {
	*ui.Par
}

func NewTextCol

func NewTextCol(s string) *TextCol

func (*TextCol) Highlight

func (w *TextCol) Highlight()

func (*TextCol) Reset

func (w *TextCol) Reset()

func (*TextCol) Set

func (w *TextCol) Set(s string)

func (*TextCol) UnHighlight

func (w *TextCol) UnHighlight()

Jump to

Keyboard shortcuts

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