views

package
v0.0.0-...-26e526f Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ViewEventLoginClicked = "login-clicked"
)

Variables

This section is empty.

Functions

func NewAlbums

func NewAlbums(client *client.Client) *albums

func NewArtists

func NewArtists(client *client.Client) *artists

func NewHelp

func NewHelp() *help

func NewLayout

func NewLayout(client *client.Client, playbackCtl *playback.Controller, refreshUI func()) *layout

func NewMainView

func NewMainView(client *client.Client, log func(format string, a ...any)) *main

func NewPlayer

func NewPlayer(client *client.Client) *player

func NewPlaylists

func NewPlaylists(client *client.Client) *playlists

func NewQueue

func NewQueue() *queue

func NewStatusLine

func NewStatusLine() *statusLine

Types

type Statusmode

type Statusmode int
const (
	StatusModeLog    Statusmode = iota
	StatusModeSearch Statusmode = iota
)

type View

type View interface {
	GetView() tview.Primitive
	Update()
}

func NewLoginView

func NewLoginView(loginFunc func(u, p, url string), exitFunc func()) View

type ViewEvent

type ViewEvent string

Jump to

Keyboard shortcuts

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