statusbar

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TickCmd

func TickCmd() tea.Cmd

command to update every second. see Init and case tickMsg in Update.

Types

type Model

type Model struct {
	State mpdclient.State
	// contains filtered or unexported fields
}

func New

func New() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Reset

func (m *Model) Reset()

func (*Model) SetOptionText

func (m *Model) SetOptionText(text string)

func (*Model) SetPlaying

func (m *Model) SetPlaying(track mpdclient.Track, elapsed int, state mpdclient.State)

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) SetState

func (m *Model) SetState(state mpdclient.State)

func (*Model) SetText

func (m *Model) SetText(text string)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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