Copyright | (c) Itai Y. Efrat 2020-2021 |
---|---|
License | GPLv2-or-later (see LICENSE) |
Maintainer | Itai Y. Efrat <itai3397@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Functions for the Library view.
Synopsis
- drawLibraryLeft :: HumState -> Widget Name
- drawLibraryMid :: HumState -> Widget Name
- drawLibraryRight :: HumState -> Widget Name
- libraryRow :: HumState -> Name -> Text -> Widget n
- libraryAlbumRow :: (Value, Value) -> Widget n
- librarySongRow :: HumState -> Song -> Widget n
- libraryMoveRight :: FocLib -> FocLib
- libraryMoveLeft :: FocLib -> FocLib
- drawViewLibrary :: HumState -> Widget Name
- libraryMove :: (forall e. List Name e -> List Name e) -> HumState -> EventM Name HumState
- libraryAddtoQ :: Bool -> HumState -> EventM Name HumState
- librarySearch :: Bool -> HumState -> EventM Name HumState
- handleEventLibrary :: HumState -> BrickEvent Name HumEvent -> EventM Name (Next HumState)
Documentation
libraryMoveRight :: FocLib -> FocLib Source #
Move focus right in Library view.
libraryMoveLeft :: FocLib -> FocLib Source #
Move focus left in Library view.
:: (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
Add selected element in Library view to queue. If the element is an album or artist add all songs under it.
Search focused library column for next instance of last search.