hum-0.2.0.0: A TUI MPD client, inspired by ncmpcpp
Copyright(c) Itai Y. Efrat 2020-2021
LicenseGPLv2-or-later (see LICENSE)
MaintainerItai Y. Efrat <itai3397@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Hum.Views.Library

Description

Functions for the Library view.

Synopsis

Documentation

drawLibraryLeft :: HumState -> Widget Name Source #

Draw left column in Library view.

drawLibraryMid :: HumState -> Widget Name Source #

Draw middle column in Library view.

drawLibraryRight :: HumState -> Widget Name Source #

Draw right column in Library view.

libraryRow :: HumState -> Name -> Text -> Widget n Source #

Draw generic column row in Library view.

libraryAlbumRow :: (Value, Value) -> Widget n Source #

Draw row in album column in Library view.

librarySongRow :: HumState -> Song -> Widget n Source #

Draw row in song column in Library view.

libraryMoveRight :: FocLib -> FocLib Source #

Move focus right in Library view.

libraryMoveLeft :: FocLib -> FocLib Source #

Move focus left in Library view.

drawViewLibrary :: HumState -> Widget Name Source #

Draw Library view.

libraryMove Source #

Arguments

:: (forall e. List Name e -> List Name e)

Function to move the focused column with

-> HumState 
-> EventM Name HumState 

Move focused library column by given function

libraryAddtoQ Source #

Arguments

:: Bool

Play first item added to queue

-> HumState 
-> EventM Name HumState 

Add selected element in Library view to queue. If the element is an album or artist add all songs under it.

librarySearch Source #

Arguments

:: Bool

Search direction, True for forward.

-> HumState 
-> EventM Name HumState 

Search focused library column for next instance of last search.

handleEventLibrary :: HumState -> BrickEvent Name HumEvent -> EventM Name (Next HumState) Source #

handle key inputs for Library view.