Versions in this module Expand all Collapse all v0 v0.1.1 Mar 9, 2021 v0.1.0 Mar 9, 2021 Changes in this version + const AutoSize + type ClipRegion struct + func NewClipRegion(screen tcell.Screen, x, y, width, height int) *ClipRegion + func (cr *ClipRegion) Clear() + func (cr *ClipRegion) Fill(ch rune, style tcell.Style) + func (cr *ClipRegion) InRect(x, y int) bool + func (cr *ClipRegion) SetCell(x int, y int, style tcell.Style, ch ...rune) + func (cr *ClipRegion) SetContent(x int, y int, mainc rune, combc []rune, style tcell.Style) + func (cr *ClipRegion) ShowCursor(x int, y int) + type Direction int + const HorizontalLayout + const VerticalLayout + type Item struct + Size int + type Layout struct + func NewLayout() *Layout + func (l *Layout) AddItem(p tview.Primitive, size int) *Layout + func (l *Layout) Blur() + func (l *Layout) ClearItems() *Layout + func (l *Layout) CountItems() int + func (l *Layout) Draw(screen tcell.Screen) + func (l *Layout) Focus(delegate func(p tview.Primitive)) + func (l *Layout) GetBackgroundColor() tcell.Color + func (l *Layout) GetDirection() Direction + func (l *Layout) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey + func (l *Layout) GetItem(i int) *Item + func (l *Layout) GetMouseCapture() ... + func (l *Layout) GetRect() (int, int, int, int) + func (l *Layout) GetSplitterAttributes() tcell.AttrMask + func (l *Layout) GetSplitterColor() tcell.Color + func (l *Layout) HasFocus() bool + func (l *Layout) InRect(x, y int) bool + func (l *Layout) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (l *Layout) MouseHandler() ... + func (l *Layout) RemoveItem(i int) *Layout + func (l *Layout) SetBackgroundColor(color tcell.Color) *Layout + func (l *Layout) SetDirection(d Direction) *Layout + func (l *Layout) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Layout + func (l *Layout) SetMouseCapture(...) *Layout + func (l *Layout) SetRect(x, y, width, height int) + func (l *Layout) SetSplitter(show bool) *Layout + func (l *Layout) SetSplitterAttributes(attr tcell.AttrMask) *Layout + func (l *Layout) SetSplitterColor(color tcell.Color) *Layout + func (l *Layout) WrapInputHandler(inputHandler func(*tcell.EventKey, func(p tview.Primitive))) func(*tcell.EventKey, func(p tview.Primitive)) + func (l *Layout) WrapMouseHandler(...) ... + type Manager struct + func NewWindowManager() *Manager + func (m *Manager) Draw(screen tcell.Screen) + func (m *Manager) Focus(delegate func(p tview.Primitive)) + func (m *Manager) GetRoot() *Layout + func (m *Manager) HasFocus() bool + func (m *Manager) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (m *Manager) IsMaximazed(w *Window) bool + func (m *Manager) Maximize(w *Window) *Manager + func (m *Manager) MouseHandler() ... + func (m *Manager) Restore() *Manager + func (m *Manager) SetRoot(root *Layout) *Manager + type Window struct + func NewWindow() *Window + func (w *Window) AddButton(symbol rune, alignment WindowButtonAlignment, ...) *Window + func (w *Window) Blur() + func (w *Window) ClearButtons() *Window + func (w *Window) CountButtons() int + func (w *Window) Draw(screen tcell.Screen) + func (w *Window) Focus(delegate func(p tview.Primitive)) + func (w *Window) GetButton(i int) *WindowButton + func (w *Window) GetRoot() tview.Primitive + func (w *Window) HasBorder() bool + func (w *Window) HasFocus() bool + func (w *Window) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (w *Window) MouseHandler() ... + func (w *Window) RemoveButton(i int) *Window + func (w *Window) SetBorder(show bool) *Window + func (w *Window) SetRoot(root tview.Primitive) *Window + func (w *Window) SetTitle(text string) *Window + type WindowButton struct + Alignment WindowButtonAlignment + OnClick func(w *Window, b *WindowButton) + Symbol rune + type WindowButtonAlignment int + const WindowButtonAlignLeft + const WindowButtonAlignRight