taborder

package module
v0.0.0-...-d46e4bf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tab

type Tab struct {
	Name          string
	TabList       []*TabInfo
	CurrentIndex  int
	PreviousIndex int
	Application   *tview.Application
}

Tab for all windows in a panel

func New

func New(name string, application *tview.Application) *Tab

New information object

func (*Tab) Add

func (to *Tab) Add(name string, w interface{}, key interface{}) (*TabInfo, error)

Add to the given list of windows

func (*Tab) SetCurrentInputFocus

func (to *Tab) SetCurrentInputFocus()

func (*Tab) SetDefaultBorderColor

func (to *Tab) SetDefaultBorderColor(color tcell.Color)

SetDefaultBorderColor to the normal non-selected border color

func (*Tab) SetHighlightBorderColor

func (to *Tab) SetHighlightBorderColor(color tcell.Color)

SetHighlightBorderColor to the normal non-selected border color

func (*Tab) SetInputDone

func (to *Tab) SetInputDone() error

SetInputDone functions and data

func (*Tab) SetInputFocus

func (to *Tab) SetInputFocus(key interface{})

SetInputFocus sets the focus to the given event

type TabInfo

type TabInfo struct {
	Index int
	View  interface{}
	EKey  *tcell.EventKey
	Name  string
}

TabInfo for windows on the current panel

Jump to

Keyboard shortcuts

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