Documentation
¶
Index ¶
- func InvokeInputCapture(p inputCapturer, key tcell.Key, ch rune, mod tcell.ModMask) *tcell.EventKey
- func MainMenuList(tui *TUI) *tview.List
- func ShowErrorModal(tui *TUI, err error)
- func WithFocusTo(focusTo FocusTo) func(o *setPanelsOptions)
- type ActionMenuItem
- type ActionsMenu
- type Breadcrumbs
- type Cell
- type FocusTo
- type Header
- type HeaderFocusedTo
- type LoginMenu
- type Panel
- type PanelBase
- type PanelPrimitive
- type Row
- type Screen
- type ScreenBase
- type ScreenOptions
- type TUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeInputCapture ¶ added in v0.10.2
InvokeInputCapture retrieves the input-capture function installed on p and calls it with a synthetic key event. It returns nil when no capture is registered. This helper exists so external test packages can drive production key-handling logic without importing tview or tcell directly.
func MainMenuList ¶
func ShowErrorModal ¶
func WithFocusTo ¶
func WithFocusTo(focusTo FocusTo) func(o *setPanelsOptions)
Types ¶
type ActionMenuItem ¶
type ActionsMenu ¶
type ActionsMenu struct {
// contains filtered or unexported fields
}
func (*ActionsMenu) Clear ¶
func (m *ActionsMenu) Clear()
func (*ActionsMenu) RegisterActionMenuItems ¶
func (m *ActionsMenu) RegisterActionMenuItems(items ...ActionMenuItem) error
type Breadcrumbs ¶
type Breadcrumbs interface {
Clear()
Push(bc sneatv.Breadcrumb)
GoHome() error
}
type Header ¶
func (*Header) Breadcrumbs ¶
func (h *Header) Breadcrumbs() Breadcrumbs
type LoginMenu ¶
type LoginMenu struct {
*sneatv.ButtonWithShortcut
}
func NewLoginMenu ¶
func NewLoginMenu() *LoginMenu
type PanelBase ¶
type PanelBase struct {
sneatv.PrimitiveWithBox
// contains filtered or unexported fields
}
func NewPanelBase ¶
func NewPanelBase(tui *TUI, primitive sneatv.PrimitiveWithBox) PanelBase
type PanelPrimitive ¶
type Screen ¶
type Screen interface {
tview.Primitive
Options() ScreenOptions
Activate() error
Close() error
}
type ScreenBase ¶
func (*ScreenBase) Activate ¶
func (screen *ScreenBase) Activate() error
func (*ScreenBase) Close ¶
func (screen *ScreenBase) Close() error
func (*ScreenBase) Options ¶
func (screen *ScreenBase) Options() ScreenOptions
func (*ScreenBase) TakeFocus ¶
func (screen *ScreenBase) TakeFocus()
func (*ScreenBase) Window ¶
func (screen *ScreenBase) Window() tview.Primitive
type ScreenOptions ¶
type ScreenOptions struct {
// contains filtered or unexported fields
}
func (ScreenOptions) FullScreen ¶
func (o ScreenOptions) FullScreen() bool
type TUI ¶
type TUI struct {
App *tview.Application
Layout *layout
Header *Header
Menu Panel
Content Panel
// contains filtered or unexported fields
}
func NewTUI ¶
func NewTUI(app *tview.Application, root sneatv.Breadcrumb) *TUI
func (*TUI) StackDepth ¶
Click to show internal directories.
Click to hide internal directories.