widget

package
v0.0.0-...-3abac3a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 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 Widget

type Widget interface {
	Init() tea.Cmd
	Update(msg tea.Msg) tea.Cmd
	View(w io.Writer)
}

type WidgetStack

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

func NewWidgetStack

func NewWidgetStack(ws ...Widget) WidgetStack

func (*WidgetStack) Init

func (ws *WidgetStack) Init() tea.Cmd

func (*WidgetStack) Peek

func (ws *WidgetStack) Peek() Widget

func (*WidgetStack) Pop

func (ws *WidgetStack) Pop() Widget

func (*WidgetStack) Push

func (ws *WidgetStack) Push(w Widget) Widget

func (*WidgetStack) Update

func (ws *WidgetStack) Update(msg tea.Msg) tea.Cmd

func (*WidgetStack) View

func (ws *WidgetStack) View(w io.Writer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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