extpages

package
v0.0.0-...-de8b626 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtPage

type ExtPage struct {
	// contains filtered or unexported fields
}

func NewPage

func NewPage(name string, item tview.Primitive, resize, visible bool, onShow, onHide, onDraw func()) *ExtPage

func (*ExtPage) Item

func (p *ExtPage) Item() tview.Primitive

func (*ExtPage) Name

func (p *ExtPage) Name() string

func (*ExtPage) Params

func (p *ExtPage) Params() []interface{}

func (*ExtPage) Resize

func (p *ExtPage) Resize() bool

func (*ExtPage) SetFuncOnDraw

func (p *ExtPage) SetFuncOnDraw(handler func()) *ExtPage

func (*ExtPage) SetFuncOnHide

func (p *ExtPage) SetFuncOnHide(handler func()) *ExtPage

func (*ExtPage) SetFuncOnShow

func (p *ExtPage) SetFuncOnShow(handler func()) *ExtPage

func (*ExtPage) SetVisible

func (p *ExtPage) SetVisible(visible bool)

func (*ExtPage) Visible

func (p *ExtPage) Visible() bool

type ExtPages

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

func NewPages

func NewPages() *ExtPages

NewPages returns a new ExtPages object.

func (*ExtPages) AddPage

func (p *ExtPages) AddPage(page *ExtPage) *ExtPages

func (*ExtPages) Current

func (p *ExtPages) Current() *ExtPage

func (*ExtPages) Draw

func (p *ExtPages) Draw(screen tcell.Screen)

func (*ExtPages) Focus

func (p *ExtPages) Focus(delegate func(p tview.Primitive))

func (*ExtPages) GetFrontPage

func (p *ExtPages) GetFrontPage() (name string, item tview.Primitive)

func (*ExtPages) GetPageCount

func (p *ExtPages) GetPageCount() int

func (*ExtPages) GetPrevious

func (p *ExtPages) GetPrevious() string

func (*ExtPages) HasFocus

func (p *ExtPages) HasFocus() bool

func (*ExtPages) HasPage

func (p *ExtPages) HasPage(name string) bool

func (*ExtPages) HidePage

func (p *ExtPages) HidePage(name string) *ExtPages

func (*ExtPages) InputHandler

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

func (*ExtPages) IsPreviousExists

func (p *ExtPages) IsPreviousExists() bool

func (*ExtPages) MouseHandler

func (p *ExtPages) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

func (*ExtPages) RemovePage

func (p *ExtPages) RemovePage(name string) *ExtPages

func (*ExtPages) SetChangedFunc

func (p *ExtPages) SetChangedFunc(handler func()) *ExtPages

func (*ExtPages) SwitchToPage

func (p *ExtPages) SwitchToPage(name string, params ...interface{}) *ExtPages

Jump to

Keyboard shortcuts

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