reflex-vty-0.6.1.0: Reflex FRP host and widgets for VTY applications
Safe HaskellNone
LanguageHaskell2010

Reflex.Vty.Widget.Input

Description

 
Synopsis

Documentation

data CheckboxConfig t Source #

Configuration options for a checkbox

Instances

Instances details
Reflex t => Default (CheckboxConfig t) Source # 
Instance details

Defined in Reflex.Vty.Widget.Input

Methods

def :: CheckboxConfig t #

data CheckboxStyle Source #

Characters used to render checked and unchecked textboxes

Instances

Instances details
Default CheckboxStyle Source # 
Instance details

Defined in Reflex.Vty.Widget.Input

Methods

def :: CheckboxStyle #

data ButtonConfig t Source #

Configuration options for the button widget

Instances

Instances details
Reflex t => Default (ButtonConfig t) Source # 
Instance details

Defined in Reflex.Vty.Widget.Input

Methods

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

ctrlc :: (Monad m, HasInput t m, Reflex t) => m (Event t ()) Source #

The ctrl-c keypress event