components

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devices

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

Devices displays available playback devices

func NewDevices

func NewDevices() *Devices

NewDevices creates a new Devices component

func (*Devices) Render

func (d *Devices) Render(devices []core.Device, width, height int, focused bool) string

Render renders the devices panel

func (*Devices) SelectNext

func (d *Devices) SelectNext()

SelectNext selects the next device

func (*Devices) SelectPrev

func (d *Devices) SelectPrev()

SelectPrev selects the previous device

func (*Devices) Selected

func (d *Devices) Selected() int

Selected returns the selected device index

type History

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

History displays recently played tracks

func NewHistory

func NewHistory() *History

NewHistory creates a new History component

func (*History) Render

func (h *History) Render(entries []HistoryEntry, width, height int, focused bool) string

Render renders the history panel

type HistoryEntry

type HistoryEntry struct {
	Track    *core.Track
	PlayedAt time.Time
	Skipped  bool
}

HistoryEntry represents a track in play history

type NowPlaying

type NowPlaying struct{}

NowPlaying displays the currently playing track

func NewNowPlaying

func NewNowPlaying() *NowPlaying

NewNowPlaying creates a new NowPlaying component

func (*NowPlaying) Render

func (n *NowPlaying) Render(state *core.PlaybackState, width, height int, focused bool) string

Render renders the now playing panel

type Queue

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

Queue displays the playback queue

func NewQueue

func NewQueue() *Queue

NewQueue creates a new Queue component

func (*Queue) Render

func (q *Queue) Render(queue *core.Queue, width, height int, focused bool) string

Render renders the queue panel

func (*Queue) ScrollDown

func (q *Queue) ScrollDown()

ScrollDown scrolls the queue down

func (*Queue) ScrollUp

func (q *Queue) ScrollUp()

ScrollUp scrolls the queue up

func (*Queue) Selected

func (q *Queue) Selected() int

Selected returns the selected index

type SearchResult

type SearchResult struct {
	Type   string // track, album, artist, playlist
	Name   string
	Artist string
	URI    string
}

SearchResult represents a search result for the overlay

Jump to

Keyboard shortcuts

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