Versions in this module Expand all Collapse all v0 v0.1.0 Jul 13, 2019 Changes in this version + const BORDER_BOTTOM + const BORDER_LEFT + const BORDER_RIGHT + const BORDER_TOP + const SIZE_EXACT + const SIZE_WEIGHT + const TEXT_CENTER + const TEXT_LEFT + const TEXT_RIGHT + type Bordered struct + func NewBordered(content Drawable, borders uint) *Bordered + func (bordered *Bordered) Children() []Drawable + func (bordered *Bordered) Draw(ctx *Context) + func (bordered *Bordered) Invalidate() + type Container interface + Children func() []Drawable + type Context struct + func NewContext(width, height int, screen tcell.Screen) *Context + func (ctx *Context) Fill(x, y, width, height int, rune rune, style tcell.Style) + func (ctx *Context) Height() int + func (ctx *Context) HideCursor() + func (ctx *Context) Printf(x, y int, style tcell.Style, format string, a ...interface{}) int + func (ctx *Context) SetCell(x, y int, ch rune, style tcell.Style) + func (ctx *Context) SetCursor(x, y int) + func (ctx *Context) Subcontext(x, y, width, height int) *Context + func (ctx *Context) Width() int + func (ctx *Context) X() int + func (ctx *Context) Y() int + type Drawable interface + Draw func(ctx *Context) + Invalidate func() + OnInvalidate func(callback func(d Drawable)) + type DrawableInteractive interface + type Fill rune + func NewFill(f rune) Fill + func (f Fill) Draw(ctx *Context) + func (f Fill) Invalidate() + func (f Fill) OnInvalidate(callback func(d Drawable)) + type Grid struct + func NewGrid() *Grid + func (grid *Grid) AddChild(content Drawable) *GridCell + func (grid *Grid) Children() []Drawable + func (grid *Grid) Columns(spec []GridSpec) *Grid + func (grid *Grid) Draw(ctx *Context) + func (grid *Grid) Invalidate() + func (grid *Grid) RemoveChild(content Drawable) + func (grid *Grid) Rows(spec []GridSpec) *Grid + type GridCell struct + ColSpan int + Column int + Content Drawable + Row int + RowSpan int + func (cell *GridCell) At(row, col int) *GridCell + func (cell *GridCell) Span(rows, cols int) *GridCell + type GridSpec struct + Size int + Strategy int + type Interactive interface + Event func(event tcell.Event) bool + Focus func(focus bool) + type Invalidatable struct + func (i *Invalidatable) DoInvalidate(d Drawable) + func (i *Invalidatable) OnInvalidate(f func(d Drawable)) + type Simulator interface + Simulate func(events []tcell.Event) + type Stack struct + func NewStack() *Stack + func (stack *Stack) Children() []Drawable + func (stack *Stack) Draw(ctx *Context) + func (stack *Stack) Invalidate() + func (stack *Stack) OnInvalidate(onInvalidate func(d Drawable)) + func (stack *Stack) Peek() Drawable + func (stack *Stack) Pop() Drawable + func (stack *Stack) Push(d Drawable) + type Tab struct + Content Drawable + Name string + type TabContent Tabs + func (content *TabContent) Children() []Drawable + func (content *TabContent) Draw(ctx *Context) + func (content *TabContent) Invalidate() + func (content *TabContent) OnInvalidate(onInvalidate func(d Drawable)) + type TabStrip Tabs + func (strip *TabStrip) Draw(ctx *Context) + func (strip *TabStrip) Invalidate() + func (strip *TabStrip) OnInvalidate(onInvalidate func(d Drawable)) + type Tabs struct + Selected int + TabContent *TabContent + TabStrip *TabStrip + Tabs []*Tab + func NewTabs() *Tabs + func (tabs *Tabs) Add(content Drawable, name string) *Tab + func (tabs *Tabs) Remove(content Drawable) + func (tabs *Tabs) Select(index int) + type Text struct + func NewText(text string) *Text + func (t *Text) Bold(bold bool) *Text + func (t *Text) Color(fg tcell.Color, bg tcell.Color) *Text + func (t *Text) Draw(ctx *Context) + func (t *Text) Invalidate() + func (t *Text) Reverse(reverse bool) *Text + func (t *Text) Strategy(strategy uint) *Text + func (t *Text) Text(text string) *Text + type TextInput struct + func NewTextInput(text string) *TextInput + func (ti *TextInput) Draw(ctx *Context) + func (ti *TextInput) Event(event tcell.Event) bool + func (ti *TextInput) Focus(focus bool) + func (ti *TextInput) Invalidate() + func (ti *TextInput) OnChange(onChange func(ti *TextInput)) + func (ti *TextInput) Password(password bool) *TextInput + func (ti *TextInput) Prompt(prompt string) *TextInput + func (ti *TextInput) Set(value string) + func (ti *TextInput) String() string + type UI struct + Content DrawableInteractive + func Initialize(conf *config.AercConfig, content DrawableInteractive) (*UI, error) + func (state *UI) Close() + func (state *UI) Exit() + func (state *UI) ShouldExit() bool + func (state *UI) Tick() bool