Versions in this module Expand all Collapse all v1 v1.1.0 Jun 23, 2018 v1.0.0 Nov 24, 2017 Changes in this version + const AlignBegin + const AlignEnd + const AlignMiddle + const Horizontal + const Vertical + type Alignment int + const HAlignCenter + const HAlignLeft + const HAlignRight + const VAlignBottom + const VAlignCenter + const VAlignTop + type Application struct + func (app *Application) PostFunc(fn func()) + func (app *Application) Quit() + func (app *Application) Refresh() + func (app *Application) Run() error + func (app *Application) SetRootWidget(widget Widget) + func (app *Application) SetScreen(scr tcell.Screen) + func (app *Application) SetStyle(style tcell.Style) + func (app *Application) Start() + func (app *Application) Update() + func (app *Application) Wait() error + type BoxLayout struct + func NewBoxLayout(orient Orientation) *BoxLayout + func (b *BoxLayout) AddWidget(widget Widget, fill float64) + func (b *BoxLayout) Draw() + func (b *BoxLayout) HandleEvent(ev tcell.Event) bool + func (b *BoxLayout) InsertWidget(index int, widget Widget, fill float64) + func (b *BoxLayout) RemoveWidget(widget Widget) + func (b *BoxLayout) Resize() + func (b *BoxLayout) SetOrientation(orient Orientation) + func (b *BoxLayout) SetStyle(style tcell.Style) + func (b *BoxLayout) SetView(view View) + func (b *BoxLayout) Size() (int, int) + func (b *BoxLayout) Widgets() []Widget + type CellModel interface + GetBounds func() (int, int) + GetCell func(x, y int) (rune, tcell.Style, []rune, int) + GetCursor func() (int, int, bool, bool) + MoveCursor func(offx, offy int) + SetCursor func(int, int) + type CellView struct + func NewCellView() *CellView + func (a *CellView) Draw() + func (a *CellView) HandleEvent(e tcell.Event) bool + func (a *CellView) Init() + func (a *CellView) MakeCursorVisible() + func (a *CellView) MakeVisible(x, y int) + func (a *CellView) Resize() + func (a *CellView) SetCursor(x, y int) + func (a *CellView) SetCursorX(x int) + func (a *CellView) SetCursorY(y int) + func (a *CellView) SetModel(model CellModel) + func (a *CellView) SetStyle(s tcell.Style) + func (a *CellView) SetView(view View) + func (a *CellView) Size() (int, int) + type EventWidget interface + Widget func() Widget + type EventWidgetContent struct + func (wev *EventWidgetContent) SetWidget(widget Widget) + func (wev *EventWidgetContent) Widget() Widget + type EventWidgetMove struct + func (wev *EventWidgetMove) SetWidget(widget Widget) + func (wev *EventWidgetMove) Widget() Widget + type EventWidgetResize struct + func (wev *EventWidgetResize) SetWidget(widget Widget) + func (wev *EventWidgetResize) Widget() Widget + type Orientation int + type Panel struct + func NewPanel() *Panel + func (p *Panel) Draw() + func (p *Panel) SetContent(w Widget) + func (p *Panel) SetMenu(w Widget) + func (p *Panel) SetStatus(w Widget) + func (p *Panel) SetTitle(w Widget) + type SimpleStyledText struct + func NewSimpleStyledText() *SimpleStyledText + func (t *SimpleStyledText) LookupStyle(r rune) tcell.Style + func (t *SimpleStyledText) Markup() string + func (t *SimpleStyledText) RegisterStyle(r rune, style tcell.Style) + func (t *SimpleStyledText) SetMarkup(s string) + type SimpleStyledTextBar struct + func NewSimpleStyledTextBar() *SimpleStyledTextBar + func (s *SimpleStyledTextBar) Init() + func (s *SimpleStyledTextBar) RegisterCenterStyle(r rune, style tcell.Style) + func (s *SimpleStyledTextBar) RegisterLeftStyle(r rune, style tcell.Style) + func (s *SimpleStyledTextBar) RegisterRightStyle(r rune, style tcell.Style) + func (s *SimpleStyledTextBar) SetCenter(m string) + func (s *SimpleStyledTextBar) SetLeft(m string) + func (s *SimpleStyledTextBar) SetRight(m string) + func (s *SimpleStyledTextBar) Size() (int, int) + type Spacer struct + func NewSpacer() *Spacer + func (*Spacer) Draw() + func (*Spacer) HandleEvent(tcell.Event) bool + func (*Spacer) SetView(View) + func (*Spacer) Size() (int, int) + func (s *Spacer) Resize() + type Text struct + func NewText() *Text + func (t *Text) Alignment() Alignment + func (t *Text) Draw() + func (t *Text) HandleEvent(tcell.Event) bool + func (t *Text) Resize() + func (t *Text) SetAlignment(align Alignment) + func (t *Text) SetStyle(style tcell.Style) + func (t *Text) SetStyleAt(pos int, style tcell.Style) + func (t *Text) SetText(s string) + func (t *Text) SetView(view View) + func (t *Text) Size() (int, int) + func (t *Text) Style() tcell.Style + func (t *Text) StyleAt(pos int) tcell.Style + func (t *Text) Text() string + type TextArea struct + func NewTextArea() *TextArea + func (ta *TextArea) EnableCursor(on bool) + func (ta *TextArea) HideCursor(on bool) + func (ta *TextArea) Init() + func (ta *TextArea) SetContent(text string) + func (ta *TextArea) SetLines(lines []string) + func (ta *TextArea) SetStyle(style tcell.Style) + type TextBar struct + func NewTextBar() *TextBar + func (t *TextBar) Draw() + func (t *TextBar) HandleEvent(ev tcell.Event) bool + func (t *TextBar) Resize() + func (t *TextBar) SetCenter(s string, style tcell.Style) + func (t *TextBar) SetLeft(s string, style tcell.Style) + func (t *TextBar) SetRight(s string, style tcell.Style) + func (t *TextBar) SetStyle(style tcell.Style) + func (t *TextBar) SetView(view View) + func (t *TextBar) Size() (int, int) + type View interface + Clear func() + Fill func(rune, tcell.Style) + Resize func(x, y, width, height int) + SetContent func(x int, y int, ch rune, comb []rune, style tcell.Style) + Size func() (int, int) + type ViewPort struct + func NewViewPort(view View, x, y, width, height int) *ViewPort + func (v *ViewPort) Center(x, y int) + func (v *ViewPort) Clear() + func (v *ViewPort) Fill(ch rune, style tcell.Style) + func (v *ViewPort) GetContentSize() (int, int) + func (v *ViewPort) GetPhysical() (int, int, int, int) + func (v *ViewPort) GetVisible() (int, int, int, int) + func (v *ViewPort) MakeVisible(x, y int) + func (v *ViewPort) Reset() + func (v *ViewPort) Resize(x, y, width, height int) + func (v *ViewPort) ScrollDown(rows int) + func (v *ViewPort) ScrollLeft(cols int) + func (v *ViewPort) ScrollRight(cols int) + func (v *ViewPort) ScrollUp(rows int) + func (v *ViewPort) SetContent(x, y int, ch rune, comb []rune, s tcell.Style) + func (v *ViewPort) SetContentSize(width, height int, locked bool) + func (v *ViewPort) SetSize(width, height int) + func (v *ViewPort) SetView(view View) + func (v *ViewPort) Size() (int, int) + func (v *ViewPort) ValidateView() + func (v *ViewPort) ValidateViewX() + func (v *ViewPort) ValidateViewY() + type Widget interface + Draw func() + HandleEvent func(ev tcell.Event) bool + Resize func() + SetView func(view View) + Size func() (int, int) + Unwatch func(handler tcell.EventHandler) + Watch func(handler tcell.EventHandler) + type WidgetWatchers struct + func (ww *WidgetWatchers) PostEvent(wev EventWidget) + func (ww *WidgetWatchers) PostEventWidgetContent(w Widget) + func (ww *WidgetWatchers) PostEventWidgetMove(w Widget) + func (ww *WidgetWatchers) PostEventWidgetResize(w Widget) + func (ww *WidgetWatchers) Unwatch(handler tcell.EventHandler) + func (ww *WidgetWatchers) Watch(handler tcell.EventHandler)