app

package
v0.0.0-...-260126f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Application *tview.Application
	Root        *tview.Flex
	Library     *tview.Flex
	Pages       *tview.Pages
	StatusBar   *tview.Table
	HelpScreen  *tview.Modal
	Player      *player.Player
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) CurrentPage

func (a *App) CurrentPage() string

func (*App) Draw

func (a *App) Draw() *tview.Application

func (*App) Play

func (a *App) Play(url string)

func (*App) PrevFocused

func (a *App) PrevFocused() tview.Primitive

func (*App) SetFocus

func (a *App) SetFocus(p tview.Primitive) *tview.Application

func (*App) SetPrevFocused

func (a *App) SetPrevFocused(p string)

func (*App) ShowBarComponent

func (a *App) ShowBarComponent(c tview.Primitive)

func (*App) Stop

func (a *App) Stop()

type Drawer

type Drawer interface {
	Draw() *tview.Application
}

type FocusStopper

type FocusStopper interface {
	// Focuser represents the ability to focus on a specific target.
	Focuser
	// Stopper represents the ability to stop a running process.
	Stopper
}

FocusStopper represents an object that can both focus and stop.

type Focuser

type Focuser interface {
	PrevFocused() tview.Primitive
	SetFocus(p tview.Primitive) *tview.Application
	SetPrevFocused(p string)
}

type PageViewer

type PageViewer interface {
	CurrentPage() string
}

type StatusbarShower

type StatusbarShower interface {
	ShowBarComponent(p tview.Primitive)
}

type Stopper

type Stopper interface {
	Stop()
}

Jump to

Keyboard shortcuts

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