views

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	*tview.Table
	// contains filtered or unexported fields
}

func NewDetails

func NewDetails(scrolling Scrolling) *Details
type Header struct {
	*tview.TextView
}

func NewHeader

func NewHeader() *Header

type Scroller

type Scroller interface {
	SetOffset(offset int)
	Select(line int)
}

type Scrolling

type Scrolling interface {
	ObjectAt(line int) *model.Object
	GetCurrentNode() *tview.TreeNode
	GetRowCount() int
	GetScrollOffset() int

	AddScroller(s ...Scroller)
}

type Status

type Status struct {
	*tview.Table
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus(scrolling Scrolling) *Status

func (*Status) Select

func (s *Status) Select(line int)

func (*Status) SetOffset

func (s *Status) SetOffset(offset int)

type TimeLine

type TimeLine struct {
	tview.Box
	// contains filtered or unexported fields
}

func NewTimeLine

func NewTimeLine(scrolling Scrolling, model *model.App) *TimeLine

func (*TimeLine) Draw

func (t *TimeLine) Draw(screen tcell.Screen)

func (*TimeLine) GetOffset

func (t *TimeLine) GetOffset() int

func (*TimeLine) GetSelected

func (t *TimeLine) GetSelected() int

func (*TimeLine) Select

func (t *TimeLine) Select(selected int)

func (*TimeLine) SetOffset

func (t *TimeLine) SetOffset(offset int)

type Tree

type Tree struct {
	*tview.TreeView
	// contains filtered or unexported fields
}

func NewTree

func NewTree(app *tview.Application, m *model.Tree) *Tree

func (*Tree) AddScroller

func (t *Tree) AddScroller(ss ...Scroller)

func (*Tree) InputHandler

func (t *Tree) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*Tree) ObjectAt

func (t *Tree) ObjectAt(line int) *model.Object

type YAML

type YAML struct {
	*tview.TextView
}

func NewYAML

func NewYAML(o *model.Object, s string) *YAML

Jump to

Keyboard shortcuts

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