tapp

package
v0.4.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell interface {
	tview.Primitive
	Box() *tview.Box
	TakeFocus()
}

type Panel

type Panel interface {
	tview.Primitive
	Box() *tview.Box
	TakeFocus()
}

type PanelBase

type PanelBase struct {
	tview.Primitive
	// contains filtered or unexported fields
}

func NewPanelBase

func NewPanelBase(tui *TUI, primitive tview.Primitive, box *tview.Box) PanelBase

func (PanelBase) Box

func (p PanelBase) Box() *tview.Box

func (PanelBase) TakeFocus

func (p PanelBase) TakeFocus()

type Row

type Row struct {
	// contains filtered or unexported fields
}

func NewRow

func NewRow(app *tview.Application, cells ...Cell) *Row

type Screen

type Screen interface {
	tview.Primitive
	Options() ScreenOptions
	//Window() tview.Primitive
	Activate() error
	Close() error
}

type ScreenBase

type ScreenBase struct {
	Tui *TUI

	tview.Primitive
	// contains filtered or unexported fields
}

func NewScreenBase

func NewScreenBase(tui *TUI, primitive tview.Primitive, options ScreenOptions) 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 FullScreen

func FullScreen() ScreenOptions

func (ScreenOptions) FullScreen

func (o ScreenOptions) FullScreen() bool

type TUI

type TUI struct {
	App *tview.Application
	// contains filtered or unexported fields
}

func NewTUI

func NewTUI(app *tview.Application) *TUI

func (*TUI) PopScreen

func (tui *TUI) PopScreen()

func (*TUI) PushScreen

func (tui *TUI) PushScreen(screen Screen)

func (*TUI) SetRootScreen

func (tui *TUI) SetRootScreen(screen Screen)

func (*TUI) StackDepth

func (tui *TUI) StackDepth() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL