ui

package
v0.0.0-...-342a002 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 12 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 {
	*tview.Application
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) AddItem

func (a *App) AddItem()

func (*App) AddView

func (a *App) AddView(view ViewController, resize bool, visible bool)

func (*App) CleanUp

func (a *App) CleanUp()

func (*App) DisplayPage

func (a *App) DisplayPage(page string)

func (*App) ItemStatusUpdater

func (a *App) ItemStatusUpdater(item *url.UrlItem, itemIdx int)

func (*App) RedrawList

func (a *App) RedrawList()

func (*App) RemoveItem

func (a *App) RemoveItem()

func (*App) SortByComplete

func (a *App) SortByComplete()

func (*App) SwitchToPage

func (a *App) SwitchToPage(page string)

type ConfirmQuitView

type ConfirmQuitView struct {
	App *App
	// contains filtered or unexported fields
}

func NewConfirmQuitView

func NewConfirmQuitView(app *App) *ConfirmQuitView

func (*ConfirmQuitView) IsActive

func (c *ConfirmQuitView) IsActive() bool

func (*ConfirmQuitView) Name

func (c *ConfirmQuitView) Name() string

func (*ConfirmQuitView) Root

func (c *ConfirmQuitView) Root() tview.Primitive

func (*ConfirmQuitView) SetActive

func (c *ConfirmQuitView) SetActive(status bool)

func (*ConfirmQuitView) SetupEvents

func (c *ConfirmQuitView) SetupEvents()

type LogsView

type LogsView struct {
	App *App
	// contains filtered or unexported fields
}

func NewLogsView

func NewLogsView(app *App) *LogsView

func (*LogsView) IsActive

func (l *LogsView) IsActive() bool

func (*LogsView) Name

func (l *LogsView) Name() string

func (*LogsView) Root

func (l *LogsView) Root() tview.Primitive

func (*LogsView) SetActive

func (l *LogsView) SetActive(status bool)

func (*LogsView) SetLogMessage

func (l *LogsView) SetLogMessage(msg string)

func (*LogsView) SetupEvents

func (l *LogsView) SetupEvents()

type MainView

type MainView struct {
	App *App
	// contains filtered or unexported fields
}

func NewMainView

func NewMainView(app *App) *MainView

func (*MainView) IsActive

func (m *MainView) IsActive() bool

func (*MainView) Name

func (m *MainView) Name() string

func (*MainView) Root

func (m *MainView) Root() tview.Primitive

func (*MainView) SetActive

func (m *MainView) SetActive(status bool)

func (*MainView) SetupEvents

func (m *MainView) SetupEvents()

type SearchView

type SearchView struct {
	App *App
	// contains filtered or unexported fields
}

func NewSearchView

func NewSearchView(app *App) *SearchView

func (*SearchView) IsActive

func (s *SearchView) IsActive() bool

func (*SearchView) Name

func (s *SearchView) Name() string

func (*SearchView) Root

func (s *SearchView) Root() tview.Primitive

func (*SearchView) SetActive

func (s *SearchView) SetActive(status bool)

func (*SearchView) SetupEvents

func (s *SearchView) SetupEvents()

type UrlFormView

type UrlFormView struct {
	App *App
	// contains filtered or unexported fields
}

func NewUrlFormView

func NewUrlFormView(app *App) *UrlFormView

func (*UrlFormView) IsActive

func (u *UrlFormView) IsActive() bool

func (*UrlFormView) Name

func (u *UrlFormView) Name() string

func (*UrlFormView) Root

func (u *UrlFormView) Root() tview.Primitive

func (*UrlFormView) SetActive

func (u *UrlFormView) SetActive(status bool)

func (*UrlFormView) SetupEvents

func (u *UrlFormView) SetupEvents()

type ViewController

type ViewController interface {
	IsActive() bool
	SetActive(bool)
	Name() string
	Root() tview.Primitive
	SetupEvents()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳