widget

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT-0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lyrics added in v0.6.0

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

Lyrics is a Widget implementing tne lyrics screen.

func (*Lyrics) Update added in v0.6.0

func (w *Lyrics) Update(ctx context.Context, ev tcell.Event)

Update updates the widget after an event.

func (*Lyrics) View added in v0.6.0

func (w *Lyrics) View() views.View

type Progress added in v0.6.0

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

Progress is Widget implementing a progress bar.

func (*Progress) Update added in v0.6.0

func (w *Progress) Update(ctx context.Context, ev tcell.Event)

Update updates the widget after an event.

func (*Progress) View added in v0.6.0

func (w *Progress) View() views.View

type Status added in v0.6.0

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

Status is a Widget implementing a status bar.

func (*Status) Update added in v0.6.0

func (w *Status) Update(ctx context.Context, ev tcell.Event)

Update updates the widget after an event.

func (*Status) View added in v0.6.0

func (w *Status) View() views.View

type Widget

type Widget interface {
	View() views.View
	SetView(view views.View)
	Size() (x int, y int)
	Update(ctx context.Context, ev tcell.Event)
}

Widget is an iterface for widgets.

Jump to

Keyboard shortcuts

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