Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Reflex.Vty.Widget.Input.Text
- module Reflex.Vty.Widget.Input.Mouse
- data CheckboxConfig t = CheckboxConfig {}
- data CheckboxStyle = CheckboxStyle {}
- data ButtonConfig t = ButtonConfig {}
- button :: (MonadFix m, MonadHold t m, HasFocusReader t m, HasTheme t m, HasDisplayRegion t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> m () -> m (Event t ())
- textButton :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasFocusReader t m, HasTheme t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> Behavior t Text -> m (Event t ())
- textButtonStatic :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasFocusReader t m, HasTheme t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> Text -> m (Event t ())
- link :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasInput t m, HasTheme t m) => Behavior t Text -> m (Event t MouseUp)
- linkStatic :: (Reflex t, Monad m, HasImageWriter t m, HasDisplayRegion t m, HasInput t m, HasTheme t m) => Text -> m (Event t MouseUp)
- checkboxStyleX :: CheckboxStyle
- checkboxStyleTick :: CheckboxStyle
- checkbox :: (MonadHold t m, MonadFix m, Reflex t, HasInput t m, HasDisplayRegion t m, HasImageWriter t m, HasFocusReader t m, HasTheme t m) => CheckboxConfig t -> Bool -> m (Dynamic t Bool)
- ctrlc :: (Monad m, HasInput t m, Reflex t) => m (Event t ())
Documentation
module Reflex.Vty.Widget.Input.Text
data CheckboxConfig t Source #
Configuration options for a checkbox
Instances
Reflex t => Default (CheckboxConfig t) Source # | |
Defined in Reflex.Vty.Widget.Input def :: CheckboxConfig t # |
data CheckboxStyle Source #
Characters used to render checked and unchecked textboxes
Instances
Default CheckboxStyle Source # | |
Defined in Reflex.Vty.Widget.Input def :: CheckboxStyle # |
data ButtonConfig t Source #
Configuration options for the button
widget
Instances
Reflex t => Default (ButtonConfig t) Source # | |
Defined in Reflex.Vty.Widget.Input def :: ButtonConfig t # |
button :: (MonadFix m, MonadHold t m, HasFocusReader t m, HasTheme t m, HasDisplayRegion t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> m () -> m (Event t ()) Source #
A button widget that contains a sub-widget
textButton :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasFocusReader t m, HasTheme t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> Behavior t Text -> m (Event t ()) Source #
A button widget that displays text that can change
textButtonStatic :: (MonadFix m, MonadHold t m, HasDisplayRegion t m, HasFocusReader t m, HasTheme t m, HasImageWriter t m, HasInput t m) => ButtonConfig t -> Text -> m (Event t ()) Source #
A button widget that displays a static bit of text
link :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasInput t m, HasTheme t m) => Behavior t Text -> m (Event t MouseUp) Source #
A clickable link widget
linkStatic :: (Reflex t, Monad m, HasImageWriter t m, HasDisplayRegion t m, HasInput t m, HasTheme t m) => Text -> 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
checkbox :: (MonadHold t m, MonadFix m, Reflex t, HasInput t m, HasDisplayRegion t m, HasImageWriter t m, HasFocusReader t m, HasTheme t m) => CheckboxConfig t -> Bool -> m (Dynamic t Bool) Source #
A checkbox widget