Documentation
¶
Index ¶
- Variables
- func GetCell(text string, st tcell.Style) *tview.TableCell
- func InitNotifier()
- func Map[K any, V any](a []K, f func(K) V) (res []V)
- func NewApplication() *tview.Application
- func NewInteractiveView() *interactiveView
- func NewMenu() *menu
- func NewSearchBar() *tview.InputField
- func RefreshProgress(force bool)
- func SendNotification(format string, args ...any)
- func SendNotificationWithChan(format string, args ...any) chan string
- func SendNotificationWithTimer(t time.Duration, format string, args ...any)
- func SetCurrentView(v View)
- type Action
- type ActionFunc
- type AlbumView
- func (a *AlbumView) AddToPlaylist()
- func (a *AlbumView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (a *AlbumView) Content() func() [][]Content
- func (d AlbumView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *AlbumView) Name() string
- func (a *AlbumView) OpenEntry()
- func (a *AlbumView) QueueEntry()
- func (a *AlbumView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (d AlbumView) SetActions(a map[string]*Action)
- func (a *AlbumView) SetAlbum(name string, al *spotify.ID)
- func (d AlbumView) SetMappings(m map[string]map[config.Key]string)
- func (d AlbumView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d AlbumView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type AlbumsView
- func (a *AlbumsView) Content() func() [][]Content
- func (d AlbumsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *AlbumsView) Name() string
- func (a *AlbumsView) OpenEntry()
- func (a *AlbumsView) PlayEntry()
- func (a *AlbumsView) QueueEntry()
- func (d AlbumsView) SetActions(a map[string]*Action)
- func (d AlbumsView) SetMappings(m map[string]map[config.Key]string)
- func (d AlbumsView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type ArtistView
- func (a *ArtistView) Content() func() [][]Content
- func (d ArtistView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *ArtistView) Name() string
- func (a *ArtistView) OpenEntry()
- func (a *ArtistView) PlayEntry()
- func (a *ArtistView) QueueEntry()
- func (a *ArtistView) RefreshState()
- func (d ArtistView) SetActions(a map[string]*Action)
- func (a *ArtistView) SetArtist(id *spotify.ID)
- func (d ArtistView) SetMappings(m map[string]map[config.Key]string)
- func (d ArtistView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type ArtistsView
- func (a *ArtistsView) Content() func() [][]Content
- func (d ArtistsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *ArtistsView) Name() string
- func (a *ArtistsView) OpenEntry()
- func (a *ArtistsView) PlayEntry()
- func (d ArtistsView) SetActions(a map[string]*Action)
- func (d ArtistsView) SetMappings(m map[string]map[config.Key]string)
- func (d ArtistsView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type CenteredWidget
- type Content
- type CoverArt
- type DefaultView
- func (d *DefaultView) DisableVisualMode() bool
- func (d DefaultView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (d DefaultView) SetActions(a map[string]*Action)
- func (d DefaultView) SetMappings(m map[string]map[config.Key]string)
- func (d DefaultView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d DefaultView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type DefaultViewNone
- func (a *DefaultViewNone) DisableVisualMode() bool
- func (d DefaultViewNone) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (d DefaultViewNone) SetActions(a map[string]*Action)
- func (d DefaultViewNone) SetMappings(m map[string]map[config.Key]string)
- func (d DefaultViewNone) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (a *DefaultViewNone) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type LikedSongsView
- func (l *LikedSongsView) AddToPlaylist()
- func (l *LikedSongsView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (p *LikedSongsView) Content() func() [][]Content
- func (d LikedSongsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (l *LikedSongsView) Name() string
- func (l *LikedSongsView) OpenEntry()
- func (l *LikedSongsView) QueueEntry()
- func (l *LikedSongsView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (l *LikedSongsView) RefreshState()
- func (d LikedSongsView) SetActions(a map[string]*Action)
- func (d LikedSongsView) SetMappings(m map[string]map[config.Key]string)
- func (d LikedSongsView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d LikedSongsView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type NavMenu
- func (d NavMenu) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (n *NavMenu) OpenEntry(e *tcell.EventKey) *tcell.EventKey
- func (d NavMenu) SetActions(a map[string]*Action)
- func (d NavMenu) SetMappings(m map[string]map[config.Key]string)
- func (d NavMenu) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d NavMenu) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type PlaylistNav
- func (d PlaylistNav) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (v *PlaylistNav) PlayEntry(e *tcell.EventKey) *tcell.EventKey
- func (v *PlaylistNav) QueueEntry(e *tcell.EventKey) *tcell.EventKey
- func (v *PlaylistNav) RefreshState()
- func (d PlaylistNav) SetActions(a map[string]*Action)
- func (d PlaylistNav) SetMappings(m map[string]map[config.Key]string)
- func (d PlaylistNav) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d PlaylistNav) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type PlaylistView
- func (p *PlaylistView) AddToPlaylist()
- func (p *PlaylistView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (p *PlaylistView) Content() func() [][]Content
- func (d PlaylistView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (p *PlaylistView) Name() string
- func (p *PlaylistView) OpenEntry()
- func (p *PlaylistView) QueueEntry()
- func (p *PlaylistView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (d PlaylistView) SetActions(a map[string]*Action)
- func (d PlaylistView) SetMappings(m map[string]map[config.Key]string)
- func (p *PlaylistView) SetPlaylist(pl *spotify.SimplePlaylist)
- func (d PlaylistView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d PlaylistView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type ProgressBar
- type RecentlyPlayedView
- func (r *RecentlyPlayedView) AddToPlaylist()
- func (r *RecentlyPlayedView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (r *RecentlyPlayedView) Content() func() [][]Content
- func (d RecentlyPlayedView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (r *RecentlyPlayedView) Name() string
- func (re *RecentlyPlayedView) OpenEntry()
- func (re *RecentlyPlayedView) QueueEntry()
- func (r *RecentlyPlayedView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
- func (r *RecentlyPlayedView) RefreshState()
- func (d RecentlyPlayedView) SetActions(a map[string]*Action)
- func (d RecentlyPlayedView) SetMappings(m map[string]map[config.Key]string)
- func (d RecentlyPlayedView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- func (d RecentlyPlayedView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
- type Refreshable
- type Root
- type SearchContent
- type SearchView
- func (a *SearchView) Content() func() [][]Content
- func (d SearchView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *SearchView) Name() string
- func (a *SearchView) OpenEntry()
- func (a *SearchView) PlayEntry()
- func (a *SearchView) RefreshState()
- func (d SearchView) SetActions(a map[string]*Action)
- func (d SearchView) SetMappings(m map[string]map[config.Key]string)
- func (a *SearchView) SetSearch(s string)
- func (d SearchView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type TopTracksView
- func (a *TopTracksView) Content() func() [][]Content
- func (d TopTracksView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
- func (a *TopTracksView) Name() string
- func (a *TopTracksView) OpenEntry()
- func (a *TopTracksView) PlayEntry()
- func (a *TopTracksView) QueueEntry()
- func (a *TopTracksView) RefreshState()
- func (d TopTracksView) SetActions(a map[string]*Action)
- func (d TopTracksView) SetMappings(m map[string]map[config.Key]string)
- func (d TopTracksView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey)
- type View
Constants ¶
This section is empty.
Variables ¶
var ( ImgX int ImgY int ImgW int ImgH int )
var ( TrackStyle tcell.Style AlbumStyle tcell.Style ArtistStyle tcell.Style TimeStyle tcell.Style GenreStyle tcell.Style ContextMenuStyle tcell.Style NotSelectableStyle tcell.Style )
var ( App *tview.Application Main *interactiveView Flex *tview.Flex )
Functions ¶
func NewApplication ¶
func NewApplication() *tview.Application
func NewInteractiveView ¶
func NewInteractiveView() *interactiveView
func NewSearchBar ¶
func NewSearchBar() *tview.InputField
func RefreshProgress ¶
func RefreshProgress(force bool)
func SendNotification ¶
func SendNotificationWithChan ¶
SendNotificationWithChan sends a notification that won't be closed unless an update message isn't sent over the channel that it returns. The message string received over the channel is then displayed for half a second and the notification is then removed.
func SetCurrentView ¶
func SetCurrentView(v View)
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action represents the Event Handler to the events that are passed to the InputCapture of the tview Widgets. It will refresh the state of the Refreshable r upon every subsequent call to the function that is being returned by the GetFunc()
func NewAction ¶
func NewAction(f ActionFunc, refreshes Refreshable) *Action
func (*Action) Func ¶
func (a *Action) Func() ActionFunc
func (*Action) SetFunc ¶
func (a *Action) SetFunc(f ActionFunc)
func (*Action) SetRefreshable ¶
func (a *Action) SetRefreshable(r Refreshable)
type ActionFunc ¶
type ActionFunc func(e *tcell.EventKey) *tcell.EventKey
type AlbumView ¶
type AlbumView struct { *DefaultView // contains filtered or unexported fields }
func NewAlbumView ¶
func NewAlbumView() *AlbumView
func (*AlbumView) AddToPlaylist ¶
func (a *AlbumView) AddToPlaylist()
func (*AlbumView) AddToPlaylistVisual ¶
func (AlbumView) ExternalInputCapture ¶
func (d AlbumView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*AlbumView) QueueEntry ¶
func (a *AlbumView) QueueEntry()
func (*AlbumView) QueueSongsVisual ¶
func (AlbumView) SetActions ¶
func (AlbumView) SetVisualActions ¶
func (AlbumView) VisualCapture ¶
func (d AlbumView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type AlbumsView ¶
type AlbumsView struct { *DefaultViewNone // contains filtered or unexported fields }
func NewAlbumsView ¶
func NewAlbumsView() *AlbumsView
func (*AlbumsView) Content ¶
func (a *AlbumsView) Content() func() [][]Content
func (AlbumsView) ExternalInputCapture ¶
func (d AlbumsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*AlbumsView) Name ¶
func (a *AlbumsView) Name() string
func (*AlbumsView) OpenEntry ¶
func (a *AlbumsView) OpenEntry()
func (*AlbumsView) PlayEntry ¶
func (a *AlbumsView) PlayEntry()
func (*AlbumsView) QueueEntry ¶
func (a *AlbumsView) QueueEntry()
func (AlbumsView) SetActions ¶
func (AlbumsView) SetVisualActions ¶
type ArtistView ¶
type ArtistView struct { *DefaultViewNone // contains filtered or unexported fields }
func NewArtistView ¶
func NewArtistView() *ArtistView
func (*ArtistView) Content ¶
func (a *ArtistView) Content() func() [][]Content
func (ArtistView) ExternalInputCapture ¶
func (d ArtistView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*ArtistView) Name ¶
func (a *ArtistView) Name() string
func (*ArtistView) OpenEntry ¶
func (a *ArtistView) OpenEntry()
func (*ArtistView) PlayEntry ¶
func (a *ArtistView) PlayEntry()
func (*ArtistView) QueueEntry ¶
func (a *ArtistView) QueueEntry()
func (*ArtistView) RefreshState ¶
func (a *ArtistView) RefreshState()
func (ArtistView) SetActions ¶
func (*ArtistView) SetArtist ¶
func (a *ArtistView) SetArtist(id *spotify.ID)
func (ArtistView) SetVisualActions ¶
type ArtistsView ¶
type ArtistsView struct { *DefaultViewNone // contains filtered or unexported fields }
func NewArtistsView ¶
func NewArtistsView() *ArtistsView
func (*ArtistsView) Content ¶
func (a *ArtistsView) Content() func() [][]Content
func (ArtistsView) ExternalInputCapture ¶
func (d ArtistsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*ArtistsView) Name ¶
func (a *ArtistsView) Name() string
func (*ArtistsView) OpenEntry ¶
func (a *ArtistsView) OpenEntry()
func (*ArtistsView) PlayEntry ¶
func (a *ArtistsView) PlayEntry()
func (ArtistsView) SetActions ¶
func (ArtistsView) SetMappings ¶
func (ArtistsView) SetVisualActions ¶
type CenteredWidget ¶
type CoverArt ¶
func (*CoverArt) RefreshState ¶
func (c *CoverArt) RefreshState()
type DefaultView ¶
type DefaultView struct {
// contains filtered or unexported fields
}
func (*DefaultView) DisableVisualMode ¶
func (d *DefaultView) DisableVisualMode() bool
func (DefaultView) ExternalInputCapture ¶
func (d DefaultView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (DefaultView) SetActions ¶
func (DefaultView) SetMappings ¶
func (DefaultView) SetVisualActions ¶
func (DefaultView) VisualCapture ¶
func (d DefaultView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type DefaultViewNone ¶
type DefaultViewNone struct {
// contains filtered or unexported fields
}
func (*DefaultViewNone) DisableVisualMode ¶
func (a *DefaultViewNone) DisableVisualMode() bool
func (DefaultViewNone) ExternalInputCapture ¶
func (d DefaultViewNone) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (DefaultViewNone) SetActions ¶
func (DefaultViewNone) SetMappings ¶
func (DefaultViewNone) SetVisualActions ¶
func (*DefaultViewNone) VisualCapture ¶
func (a *DefaultViewNone) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type LikedSongsView ¶
type LikedSongsView struct { *DefaultView // contains filtered or unexported fields }
func NewLikedSongsView ¶
func NewLikedSongsView() *LikedSongsView
func (*LikedSongsView) AddToPlaylist ¶
func (l *LikedSongsView) AddToPlaylist()
func (*LikedSongsView) AddToPlaylistVisual ¶
func (l *LikedSongsView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (*LikedSongsView) Content ¶
func (p *LikedSongsView) Content() func() [][]Content
func (LikedSongsView) ExternalInputCapture ¶
func (d LikedSongsView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*LikedSongsView) Name ¶
func (l *LikedSongsView) Name() string
func (*LikedSongsView) OpenEntry ¶
func (l *LikedSongsView) OpenEntry()
func (*LikedSongsView) QueueEntry ¶
func (l *LikedSongsView) QueueEntry()
func (*LikedSongsView) QueueSongsVisual ¶
func (l *LikedSongsView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (*LikedSongsView) RefreshState ¶
func (l *LikedSongsView) RefreshState()
func (LikedSongsView) SetActions ¶
func (LikedSongsView) SetMappings ¶
func (LikedSongsView) SetVisualActions ¶
func (LikedSongsView) VisualCapture ¶
func (d LikedSongsView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type NavMenu ¶
type NavMenu struct { // contains filtered or unexported fields }
func NewNavMenu ¶
func NewNavMenu(m []navItem) *NavMenu
func (NavMenu) ExternalInputCapture ¶
func (d NavMenu) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (NavMenu) SetActions ¶
func (NavMenu) SetVisualActions ¶
func (NavMenu) VisualCapture ¶
func (d NavMenu) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type PlaylistNav ¶
type PlaylistNav struct { // contains filtered or unexported fields }
func NewPlaylistNav ¶
func NewPlaylistNav() *PlaylistNav
func (PlaylistNav) ExternalInputCapture ¶
func (d PlaylistNav) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*PlaylistNav) PlayEntry ¶
func (v *PlaylistNav) PlayEntry(e *tcell.EventKey) *tcell.EventKey
func (*PlaylistNav) QueueEntry ¶
func (v *PlaylistNav) QueueEntry(e *tcell.EventKey) *tcell.EventKey
func (*PlaylistNav) RefreshState ¶
func (v *PlaylistNav) RefreshState()
func (PlaylistNav) SetActions ¶
func (PlaylistNav) SetMappings ¶
func (PlaylistNav) SetVisualActions ¶
func (PlaylistNav) VisualCapture ¶
func (d PlaylistNav) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type PlaylistView ¶
type PlaylistView struct { *DefaultView // contains filtered or unexported fields }
func NewPlaylistView ¶
func NewPlaylistView() *PlaylistView
func (*PlaylistView) AddToPlaylist ¶
func (p *PlaylistView) AddToPlaylist()
func (*PlaylistView) AddToPlaylistVisual ¶
func (p *PlaylistView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (*PlaylistView) Content ¶
func (p *PlaylistView) Content() func() [][]Content
func (PlaylistView) ExternalInputCapture ¶
func (d PlaylistView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*PlaylistView) Name ¶
func (p *PlaylistView) Name() string
func (*PlaylistView) OpenEntry ¶
func (p *PlaylistView) OpenEntry()
func (*PlaylistView) QueueEntry ¶
func (p *PlaylistView) QueueEntry()
func (*PlaylistView) QueueSongsVisual ¶
func (p *PlaylistView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (PlaylistView) SetActions ¶
func (PlaylistView) SetMappings ¶
func (*PlaylistView) SetPlaylist ¶
func (p *PlaylistView) SetPlaylist(pl *spotify.SimplePlaylist)
func (PlaylistView) SetVisualActions ¶
func (PlaylistView) VisualCapture ¶
func (d PlaylistView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type ProgressBar ¶
type ProgressBar struct { *tview.Box BarTitle string BarText string BarTopTitle string // contains filtered or unexported fields }
ProgressBar is a two-lined Box. First line is the BarTitle Second being the actual progress done. Use SetProgressFunc to provide the callback which provides the Fields each time the ProgressBar will be Drawn. The progressFunc must return (BarTitle, BarTopTitle, BarText, percentage) respectively
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
func (*ProgressBar) Draw ¶
func (self *ProgressBar) Draw(screen tcell.Screen)
func (*ProgressBar) RefreshState ¶
func (self *ProgressBar) RefreshState()
func (*ProgressBar) SetProgressFunc ¶
func (self *ProgressBar) SetProgressFunc(pfunc func() (string, string, string, float64)) *ProgressBar
type RecentlyPlayedView ¶
type RecentlyPlayedView struct { *DefaultView // contains filtered or unexported fields }
func NewRecentlyPlayedView ¶
func NewRecentlyPlayedView() *RecentlyPlayedView
func (*RecentlyPlayedView) AddToPlaylist ¶
func (r *RecentlyPlayedView) AddToPlaylist()
func (*RecentlyPlayedView) AddToPlaylistVisual ¶
func (r *RecentlyPlayedView) AddToPlaylistVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (*RecentlyPlayedView) Content ¶
func (r *RecentlyPlayedView) Content() func() [][]Content
func (RecentlyPlayedView) ExternalInputCapture ¶
func (d RecentlyPlayedView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*RecentlyPlayedView) Name ¶
func (r *RecentlyPlayedView) Name() string
func (*RecentlyPlayedView) OpenEntry ¶
func (re *RecentlyPlayedView) OpenEntry()
func (*RecentlyPlayedView) QueueEntry ¶
func (re *RecentlyPlayedView) QueueEntry()
func (*RecentlyPlayedView) QueueSongsVisual ¶
func (r *RecentlyPlayedView) QueueSongsVisual(start, end int, e *tcell.EventKey) *tcell.EventKey
func (*RecentlyPlayedView) RefreshState ¶
func (r *RecentlyPlayedView) RefreshState()
func (RecentlyPlayedView) SetActions ¶
func (RecentlyPlayedView) SetMappings ¶
func (RecentlyPlayedView) SetVisualActions ¶
func (RecentlyPlayedView) VisualCapture ¶
func (d RecentlyPlayedView) VisualCapture() func(start, end int, e *tcell.EventKey) *tcell.EventKey
type Refreshable ¶
type Refreshable interface {
RefreshState()
}
type Root ¶
func (*Root) AddCenteredWidget ¶
func (m *Root) AddCenteredWidget(t CenteredWidget)
func (*Root) AfterContextClose ¶
func (m *Root) AfterContextClose(f func())
type SearchContent ¶
type SearchView ¶
type SearchView struct { *DefaultViewNone // contains filtered or unexported fields }
func NewSearchView ¶
func NewSearchView() *SearchView
func (*SearchView) Content ¶
func (a *SearchView) Content() func() [][]Content
func (SearchView) ExternalInputCapture ¶
func (d SearchView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*SearchView) Name ¶
func (a *SearchView) Name() string
func (*SearchView) OpenEntry ¶
func (a *SearchView) OpenEntry()
func (*SearchView) PlayEntry ¶
func (a *SearchView) PlayEntry()
func (*SearchView) RefreshState ¶
func (a *SearchView) RefreshState()
func (SearchView) SetActions ¶
func (*SearchView) SetSearch ¶
func (a *SearchView) SetSearch(s string)
func (SearchView) SetVisualActions ¶
type TopTracksView ¶
type TopTracksView struct { *DefaultViewNone // contains filtered or unexported fields }
func NewTopTracksView ¶
func NewTopTracksView() *TopTracksView
func (*TopTracksView) Content ¶
func (a *TopTracksView) Content() func() [][]Content
func (TopTracksView) ExternalInputCapture ¶
func (d TopTracksView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey
func (*TopTracksView) Name ¶
func (a *TopTracksView) Name() string
func (*TopTracksView) OpenEntry ¶
func (a *TopTracksView) OpenEntry()
func (*TopTracksView) PlayEntry ¶
func (a *TopTracksView) PlayEntry()
func (*TopTracksView) QueueEntry ¶
func (a *TopTracksView) QueueEntry()
func (*TopTracksView) RefreshState ¶
func (a *TopTracksView) RefreshState()