tui

package
v0.0.0-...-1caa4a4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(service *service.Service, presenter *presenter.Presenter) *tview.Application

Types

type Root

type Root struct {
	*tview.Flex
	// contains filtered or unexported fields
}

Root is the root view of the app. It aggregates pages and navbar in flex.

func NewRoot

func NewRoot(app *tview.Application, service *service.Service, presenter *presenter.Presenter) *Root

New returns Root.

func (*Root) AddView

func (r *Root) AddView(hint rune, title string, view tview.Primitive)

AddView adds view with corresponding navbar item.

func (*Root) InputHandler

func (r *Root) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns the handler for this primitive.

func (*Root) IsModalOnTop

func (r *Root) IsModalOnTop() bool

IsModalOnTop check if modal of any child view is on top.

func (*Root) SwitchToView

func (r *Root) SwitchToView(name string)

SwitchToView switches to page by name and highlights corresponting navbar item.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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