taborder

package module
v0.0.0-...-9c0f739 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: BSD-3-Clause Imports: 4 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
	Index   int
	Prev    int
	Appl    *tview.Application
}

Tab for all windows in a panel

func New

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

New information object

func (*Tab) Add

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

Add to the given list of windows

func (*Tab) ColorBorder

func (to *Tab) ColorBorder(a interface{}, color tcell.Color)

ColorBorder to the tview

func (*Tab) SetDefaultBorderColor

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

SetDefaultBorderColor to the normal non-selected border color

func (*Tab) SetFocus

func (to *Tab) SetFocus(a interface{})

SetFocus to the tview primitive

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

type TabInfo

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

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 🇻🇳