Documentation
¶
Index ¶
- 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 PrimitiveWithBox
- type Row
- type Screen
- type ScreenBase
- type ScreenOptions
- type TUI
- type WithBoxType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Panel ¶
type Panel interface {
PrimitiveWithBox
TakeFocus()
Close()
}
type PanelBase ¶
type PanelBase struct {
PrimitiveWithBox
// contains filtered or unexported fields
}
func NewPanelBase ¶
func NewPanelBase(tui *TUI, primitive 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
Grid *tview.Grid
Header *Header
Menu Panel
Content Panel
// contains filtered or unexported fields
}
func NewTUI ¶
func NewTUI(app *tview.Application, root sneatv.Breadcrumb) *TUI
func (*TUI) PushScreen ¶
PushScreen is deprecated. Deprecated
func (*TUI) SetRootScreen ¶
SetRootScreen is deprecated. Deprecated
func (*TUI) StackDepth ¶
type WithBoxType ¶
type WithBoxType[T tview.Primitive] struct { tview.Primitive // contains filtered or unexported fields }
func WithBoxWithoutBorder ¶
func WithBoxWithoutBorder[T tview.Primitive](p T, box *tview.Box) WithBoxType[T]
func WithBoxWithoutPadding ¶
func WithBoxWithoutPadding[T tview.Primitive](p T, box *tview.Box) WithBoxType[T]
func (WithBoxType[T]) GetBox ¶
func (p WithBoxType[T]) GetBox() *tview.Box
func (WithBoxType[T]) GetPrimitive ¶
func (p WithBoxType[T]) GetPrimitive() T
Click to show internal directories.
Click to hide internal directories.