| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reflex.Vty.Widget.Input
Description
Synopsis
- module Reflex.Vty.Widget.Input.Text
- data CheckboxConfig t = CheckboxConfig {}
- data CheckboxStyle = CheckboxStyle {}
- data ButtonConfig t = ButtonConfig {}
- button :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> VtyWidget t m () -> VtyWidget t m (Event t ())
- textButton :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> Behavior t Text -> VtyWidget t m (Event t ())
- textButtonStatic :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> Text -> VtyWidget t m (Event t ())
- link :: (Reflex t, Monad m) => Behavior t Text -> VtyWidget t m (Event t MouseUp)
- linkStatic :: (Reflex t, Monad m) => Text -> VtyWidget t m (Event t MouseUp)
- checkboxStyleX :: CheckboxStyle
- checkboxStyleTick :: CheckboxStyle
- checkbox :: (MonadHold t m, MonadFix m, Reflex t) => CheckboxConfig t -> Bool -> VtyWidget t m (Dynamic t Bool)
Documentation
module Reflex.Vty.Widget.Input.Text
data CheckboxConfig t Source #
Configuration options for a checkbox
Constructors
| CheckboxConfig | |
Instances
| Reflex t => Default (CheckboxConfig t) Source # | |
Defined in Reflex.Vty.Widget.Input Methods def :: CheckboxConfig t # | |
data CheckboxStyle Source #
Characters used to render checked and unchecked textboxes
Constructors
| CheckboxStyle | |
Fields | |
Instances
| Default CheckboxStyle Source # | |
Defined in Reflex.Vty.Widget.Input Methods def :: CheckboxStyle # | |
data ButtonConfig t Source #
Configuration options for the button widget
Constructors
| ButtonConfig | |
Fields | |
Instances
| Reflex t => Default (ButtonConfig t) Source # | |
Defined in Reflex.Vty.Widget.Input Methods def :: ButtonConfig t # | |
button :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> VtyWidget t m () -> VtyWidget t m (Event t ()) Source #
A button widget that contains a sub-widget
textButton :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> Behavior t Text -> VtyWidget t m (Event t ()) Source #
A button widget that displays text that can change
textButtonStatic :: (Reflex t, Monad m, MonadNodeId m) => ButtonConfig t -> Text -> VtyWidget t m (Event t ()) Source #
A button widget that displays a static bit of text
link :: (Reflex t, Monad m) => Behavior t Text -> VtyWidget t m (Event t MouseUp) Source #
A clickable link widget
linkStatic :: (Reflex t, Monad m) => Text -> VtyWidget t m (Event t MouseUp) Source #
A clickable link widget with a static label
checkboxStyleX :: CheckboxStyle Source #
This checkbox style uses an "x" to indicate the checked state
checkboxStyleTick :: CheckboxStyle Source #
This checkbox style uses a unicode tick mark to indicate the checked state