ui

package
v0.0.0-...-1459c67 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpPageHome = iota
	HelpPageEntity
	HelpPageHelp
)

HelpPages

Variables

This section is empty.

Functions

func NewMainUI

func NewMainUI(app *beholder.App, tapp *tview.Application) tview.Primitive

NewMainUI .

Types

type ChoicesUI

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

ChoicesUI .

func NewChoicesUI

func NewChoicesUI(app *beholder.App) *ChoicesUI

NewChoicesUI .

func (*ChoicesUI) GetSelectedEntity

func (c *ChoicesUI) GetSelectedEntity() beholder.Entity

GetSelectedEntity .

func (*ChoicesUI) Scroll

func (c *ChoicesUI) Scroll(items int)

Scroll by the given number of items

func (*ChoicesUI) Set

func (c *ChoicesUI) Set(choices []beholder.SearchResult)

Set the choices

func (*ChoicesUI) SetChangedFunc

func (c *ChoicesUI) SetChangedFunc(changed func(entity beholder.Entity))

SetChangedFunc .

type EntityUI

type EntityUI struct {
	UI         tview.Primitive
	KeyHandler func(*tcell.EventKey) *tcell.EventKey
	// contains filtered or unexported fields
}

EntityUI .

func NewEntityUI

func NewEntityUI() *EntityUI

NewEntityUI .

func (*EntityUI) Set

func (e *EntityUI) Set(entity beholder.Entity)

Set the current Entity to be displayed

func (*EntityUI) SetFocused

func (e *EntityUI) SetFocused(isFocused bool)

SetFocused .

type HelpPage

type HelpPage int

HelpPage enum

type HelpUI

type HelpUI struct {
	UI          tview.Primitive
	KeyHandler  func(ev *tcell.EventKey) *tcell.EventKey
	CurrentPage HelpPage
	// contains filtered or unexported fields
}

HelpUI .

func NewHelpUI

func NewHelpUI() *HelpUI

NewHelpUI .

func (*HelpUI) SetPage

func (ui *HelpUI) SetPage(page HelpPage)

SetPage .

type HomeUI

type HomeUI struct {
	UI tview.Primitive
}

HomeUI .

func NewHomeUI

func NewHomeUI() *HomeUI

NewHomeUI .

type InputUI

type InputUI struct {
	UI         tview.Primitive
	KeyHandler func(*tcell.EventKey) *tcell.EventKey
}

InputUI .

func NewInputUI

func NewInputUI(app *beholder.App) *InputUI

NewInputUI .

type UpdateUI

type UpdateUI struct {
	UI tview.Primitive
}

UpdateUI .

func NewUpdateUI

func NewUpdateUI(newVersion string) *UpdateUI

NewUpdateUI .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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