mux

package
v0.0.0-...-1ab0d2a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNextWidgetFrom

func FindNextWidgetFrom(w gowid.ICompositeMultiple, pred gowid.WidgetPredicate) (int, bool)

func FindParentInHierarchy

func FindParentInHierarchy(w gowid.IWidget, pred WidgetsPredicate) gowid.IWidget

func FindWidgetIndex

func FindWidgetIndex(w []gowid.IWidget, pred gowid.WidgetPredicate) (int, bool)

Types

type IMux

type IMux interface {
	FocusedPane(id string) *pane.Widget
	VerticalSplit(id string, p *pane.Widget, app gowid.IApp)
	HorizontalSplit(id string, p *pane.Widget, app gowid.IApp)
	KillPane(id string, p *pane.Widget, app gowid.IApp)
}

type IWidget

type IWidget interface {
	gowid.ICompositeWidget
	IMux
}

type Widget

type Widget struct {
	gowid.IWidget
	// contains filtered or unexported fields
}

func New

func New(defaultID string) *Widget

func (*Widget) FocusedPane

func (w *Widget) FocusedPane(id string) *pane.Widget

func (*Widget) HorizontalSplit

func (w *Widget) HorizontalSplit(id string, p *pane.Widget, app gowid.IApp)

func (*Widget) KillPane

func (w *Widget) KillPane(id string, p *pane.Widget, app gowid.IApp)

func (*Widget) NewPane

func (w *Widget) NewPane(id string) *pane.Widget

func (*Widget) SetSubWidget

func (w *Widget) SetSubWidget(wi gowid.IWidget, app gowid.IApp)

func (*Widget) String

func (w *Widget) String() string

func (*Widget) SubWidget

func (w *Widget) SubWidget() gowid.IWidget

func (*Widget) SubWidgetSize

func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize

func (*Widget) UserInput

func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool

func (*Widget) VerticalSplit

func (w *Widget) VerticalSplit(id string, p *pane.Widget, app gowid.IApp)

type WidgetsPredicate

type WidgetsPredicate func([]gowid.IWidget) bool

func MatchWidget

func MatchWidget(m gowid.IWidget) WidgetsPredicate

Jump to

Keyboard shortcuts

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