widgets

package
v0.0.0-...-9e9632e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

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

func NewBody

func NewBody(c *cui.ConsoleUI, children ...types.Widget) *Body

func (*Body) GetIntOption

func (b *Body) GetIntOption(s string) int

func (*Body) GetOption

func (b *Body) GetOption(s string) interface{}

func (*Body) GetOptions

func (b *Body) GetOptions() map[string]interface{}

func (*Body) Render

func (b *Body) Render(msg types.Message)

func (*Body) SetOptions

func (b *Body) SetOptions(opts map[string]interface{})

type Div

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

func NewDiv

func NewDiv(c *cui.ConsoleUI, text string) *Div

func (*Div) GetIntOption

func (b *Div) GetIntOption(s string) int

func (*Div) GetOption

func (b *Div) GetOption(s string) interface{}

func (*Div) GetOptions

func (b *Div) GetOptions() map[string]interface{}

func (*Div) Render

func (d *Div) Render(msg types.Message)

func (*Div) SetOptions

func (b *Div) SetOptions(opts map[string]interface{})

type Grid

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

func NewGrid

func NewGrid(c *cui.ConsoleUI, children [][]types.Widget) *Grid

func (*Grid) GetIntOption

func (b *Grid) GetIntOption(s string) int

func (*Grid) GetOption

func (b *Grid) GetOption(s string) interface{}

func (*Grid) GetOptions

func (b *Grid) GetOptions() map[string]interface{}

func (*Grid) Render

func (g *Grid) Render(msg types.Message)

func (*Grid) SetOptions

func (b *Grid) SetOptions(opts map[string]interface{})

type Textarea

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

func NewTextarea

func NewTextarea(c *cui.ConsoleUI) *Textarea

func (*Textarea) ClearScreen

func (t *Textarea) ClearScreen()

func (*Textarea) GetIntOption

func (b *Textarea) GetIntOption(s string) int

func (*Textarea) GetOption

func (b *Textarea) GetOption(s string) interface{}

func (*Textarea) GetOptions

func (b *Textarea) GetOptions() map[string]interface{}

func (*Textarea) PrintAt

func (t *Textarea) PrintAt(x, y int, text string, restorePosition bool)

func (*Textarea) Render

func (t *Textarea) Render(msg types.Message)

func (*Textarea) SetCursor

func (t *Textarea) SetCursor(x, y int)

func (*Textarea) SetOptions

func (b *Textarea) SetOptions(opts map[string]interface{})

Jump to

Keyboard shortcuts

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