state

package
v0.0.2-0...-b55832e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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 UIState

type UIState struct {
	ActiveHandler WidgetHandler
	Handlers      map[string]WidgetHandler
	Header        *widgets.Paragraph
	Footer        *widgets.Paragraph
	Tabpane       *widgets.TabPane
}

func NewUIState

func NewUIState(header, footer *widgets.Paragraph, tabpane *widgets.TabPane) *UIState

func (*UIState) Default

func (state *UIState) Default()

func (*UIState) HandleEvent

func (state *UIState) HandleEvent(e ui.Event, statePrm *UIState)

func (*UIState) Render

func (state *UIState) Render()

func (*UIState) SetActive

func (state *UIState) SetActive(name string)

type WidgetHandler

type WidgetHandler interface {
	HandleEvent(e ui.Event, state *UIState)
	Render()
}

Jump to

Keyboard shortcuts

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