widgets

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTopHeader

type CTopHeader struct {
	Time   *ui.Par
	Count  *ui.Par
	Filter *ui.Par
	// contains filtered or unexported fields
}

func NewCTopHeader

func NewCTopHeader() *CTopHeader

func (*CTopHeader) Align

func (c *CTopHeader) Align()

func (*CTopHeader) Buffer

func (c *CTopHeader) Buffer() ui.Buffer

func (*CTopHeader) Height

func (c *CTopHeader) Height() int

func (*CTopHeader) SetCount

func (c *CTopHeader) SetCount(val int)

func (*CTopHeader) SetFilter

func (c *CTopHeader) SetFilter(val string)

type Input

type Input struct {
	ui.Block
	Label       string
	Data        string
	MaxLen      int
	TextFgColor ui.Attribute
	TextBgColor ui.Attribute
	// contains filtered or unexported fields
}

func NewInput

func NewInput() *Input

func (*Input) Buffer

func (i *Input) Buffer() ui.Buffer

func (*Input) InputHandlers

func (i *Input) InputHandlers()

Setup some default handlers for menu navigation

func (*Input) KeyPress

func (i *Input) KeyPress(e ui.Event)

func (*Input) Stream

func (i *Input) Stream() chan string

type Padding

type Padding [2]int // x,y padding

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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