Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fill :: (HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Char -> m ()
- data RichTextConfig t = RichTextConfig {}
- richText :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => RichTextConfig t -> Behavior t Text -> m ()
- text :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Text -> m ()
- scrollableText :: forall t m. (Reflex t, MonadHold t m, MonadFix m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasTheme t m) => Event t Int -> Behavior t Text -> m (Behavior t (Int, Int))
- display :: (Reflex t, Monad m, Show a, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t a -> m ()
Documentation
fill :: (HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Char -> m () Source #
Fill the background with a particular character.
data RichTextConfig t Source #
Configuration options for displaying "rich" text
Instances
Reflex t => Default (RichTextConfig t) Source # | |
Defined in Reflex.Vty.Widget.Text def :: RichTextConfig t # |
richText :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => RichTextConfig t -> Behavior t Text -> m () Source #
A widget that displays text with custom time-varying attributes
text :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Text -> m () Source #
Renders text, wrapped to the container width
:: (Reflex t, MonadHold t m, MonadFix m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasTheme t m) | |
=> Event t Int | Number of lines to scroll by |
-> Behavior t Text | |
-> m (Behavior t (Int, Int)) | (Current scroll position, total number of lines) |
Scrollable text widget. The output pair exposes the current scroll position and total number of lines (including those that are hidden)