hascard-0.6.0.1: A TUI for reviewing notes using 'flashcards' written with markdown-like syntax.
Safe HaskellSafe-Inferred
LanguageHaskell2010

UI.BrickHelpers

Synopsis

Documentation

hFill :: Char -> Widget n Source #

Fill all available space with the specified character. Grows only horizontally.

vFill :: Char -> Widget n Source #

Fill all available space with the specified character. Grows only vertically.

yesnoField :: (Ord n, Show n) => Bool -> Lens' s Bool -> n -> String -> s -> FormFieldState s e n Source #

renderYesno :: Ord n => Bool -> String -> n -> Bool -> Bool -> Widget n Source #

naturalNumberField :: (Ord n, Show n) => Int -> Lens' s Int -> n -> String -> s -> FormFieldState s e n Source #

fixedHeightOrViewport :: (Ord n, Show n) => Int -> n -> Widget n -> Widget n Source #