Versions in this module Expand all Collapse all v0 v0.0.0 Nov 10, 2022 Changes in this version + const ButtonLeft + const ButtonRight + const WindowZBottom + const WindowZTop + var MinWindowHeight = 3 + var MinWindowWidth = 3 + type Button struct + Alignment ButtonSide + OnClick func() + Symbol rune + type ButtonSide int16 + 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 Manager struct + func NewWindowManager() *Manager + func (wm *Manager) AddWindow(window Window) *Manager + func (wm *Manager) Center(window Window) *Manager + func (wm *Manager) Draw(screen tcell.Screen) + func (wm *Manager) Focus(delegate func(p tview.Primitive)) + func (wm *Manager) GetZ(window Window) int + func (wm *Manager) HasFocus() bool + func (wm *Manager) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (wm *Manager) MouseHandler() ... + func (wm *Manager) NewWindow() *WindowBase + func (wm *Manager) RemoveWindow(window Window) *Manager + func (wm *Manager) SetZ(window Window, newZ int) *Manager + func (wm *Manager) Window(z int) Window + func (wm *Manager) WindowCount() int + type Rect struct + H int + W int + X int + Y int + func NewRect(x, y, w, h int) Rect + func (r *Rect) Rect() (int, int, int, int) + func (r Rect) Contains(x, y int) bool + func (r Rect) String() string + type Stack []interface + func (s *Stack) Move(item interface{}, targetIndex int) + func (s *Stack) Pop() interface{} + func (s *Stack) Push(newItem interface{}) + func (s *Stack) Remove(item interface{}) + func (s Stack) Find(f func(item interface{}) bool) interface{} + func (s Stack) IndexOf(searchItem interface{}) int + func (s Stack) Item(i int) interface{} + type Window interface + HasBorder func() bool + IsDraggable func() bool + IsMaximized func() bool + IsModal func() bool + IsResizable func() bool + IsVisible func() bool + type WindowBase struct + Draggable bool + Modal bool + Resizable bool + Visible bool + func NewWindow() *WindowBase + func (w *WindowBase) AddButton(button *Button) *WindowBase + func (w *WindowBase) ButtonCount() int + func (w *WindowBase) Draw(screen tcell.Screen) + func (w *WindowBase) Focus(delegate func(p tview.Primitive)) + func (w *WindowBase) GetButton(i int) *Button + func (w *WindowBase) GetRoot() tview.Primitive + func (w *WindowBase) HasBorder() bool + func (w *WindowBase) HasFocus() bool + func (w *WindowBase) Hide() *WindowBase + func (w *WindowBase) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (w *WindowBase) IsDraggable() bool + func (w *WindowBase) IsMaximized() bool + func (w *WindowBase) IsModal() bool + func (w *WindowBase) IsResizable() bool + func (w *WindowBase) IsVisible() bool + func (w *WindowBase) Maximize() *WindowBase + func (w *WindowBase) MouseHandler() ... + func (w *WindowBase) Restore() *WindowBase + func (w *WindowBase) SetBorder(show bool) *WindowBase + func (w *WindowBase) SetDraggable(draggable bool) *WindowBase + func (w *WindowBase) SetModal(modal bool) *WindowBase + func (w *WindowBase) SetResizable(resizable bool) *WindowBase + func (w *WindowBase) SetRoot(root tview.Primitive) *WindowBase + func (w *WindowBase) SetTitle(text string) *WindowBase + func (w *WindowBase) Show() *WindowBase + type WindowEdge int16 + const EdgeBottom + const EdgeBottomLeft + const EdgeBottomRight + const EdgeLeft + const EdgeNone + const EdgeRight + const EdgeTop