ui

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeMetadata

type NodeMetadata struct {
	sync.Mutex
	// contains filtered or unexported fields
}

NodeMetadata is used for treenode references and holds metadata about a node

type NodeType

type NodeType int

NodeType indicates a treeview node's type

const (
	CategoryNode NodeType = iota
	EventNode
	PlayableNode
	StreamNode
	ActionNode
	MiscNode
	CollectionNode
)

Node types for Metadata

type UIState

type UIState struct {
	LiveNode *tview.TreeNode
	// contains filtered or unexported fields
}

func NewUI

func NewUI(cfg config.Config, version string) *UIState

func (*UIState) Logger

func (s *UIState) Logger() *tviewLogger

func (*UIState) Run

func (ui *UIState) Run() error

func (*UIState) Stop

func (ui *UIState) Stop()

func (*UIState) TreeInputHanlder

func (s *UIState) TreeInputHanlder(keyEvent *tcell.EventKey) *tcell.EventKey

Jump to

Keyboard shortcuts

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