Documentation
¶
Index ¶
- func ActionMsg(a action.Action) action.Msg
- type AddToPlaylist
- type GoToSource
- type JumpToTrack
- type Model
- func (m Model) Height() int
- func (m Model) IsFocused() bool
- func (m *Model) SetFavorites(favorites map[int64]bool)
- func (m *Model) SetFocused(focused bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SyncCursor()
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) Width() int
- type QueueChanged
- type ToggleFavorite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddToPlaylist ¶ added in v0.1.20
type AddToPlaylist struct {
TrackIDs []int64
}
AddToPlaylist requests adding tracks to a playlist.
func (AddToPlaylist) ActionType ¶ added in v0.1.20
func (a AddToPlaylist) ActionType() string
ActionType implements action.Action.
type GoToSource ¶ added in v0.1.22
type GoToSource struct {
TrackID int64 // Library track ID (0 if from filesystem)
Path string // File path
Album string // Album name
Artist string // Artist name
}
GoToSource requests navigation to the track's source in the current view.
func (GoToSource) ActionType ¶ added in v0.1.22
func (a GoToSource) ActionType() string
ActionType implements action.Action.
type JumpToTrack ¶ added in v0.1.8
type JumpToTrack struct {
Index int
}
JumpToTrack requests playback to jump to a specific queue index.
func (JumpToTrack) ActionType ¶ added in v0.1.8
func (a JumpToTrack) ActionType() string
ActionType implements action.Action.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the queue panel state.
func (*Model) SetFavorites ¶ added in v0.1.20
SetFavorites updates the favorites map for displaying favorite icons.
func (*Model) SetFocused ¶
SetFocused sets whether the component is focused.
func (*Model) SyncCursor ¶
func (m *Model) SyncCursor()
SyncCursor moves the cursor to the currently playing track.
type QueueChanged ¶ added in v0.1.8
type QueueChanged struct{}
QueueChanged signals that the queue contents have changed and need persisting.
func (QueueChanged) ActionType ¶ added in v0.1.8
func (a QueueChanged) ActionType() string
ActionType implements action.Action.
type ToggleFavorite ¶ added in v0.1.8
type ToggleFavorite struct {
TrackIDs []int64
}
ToggleFavorite requests toggling favorite status for tracks.
func (ToggleFavorite) ActionType ¶ added in v0.1.8
func (a ToggleFavorite) ActionType() string
ActionType implements action.Action.