reflex-vty-0.2.0.0: Reflex FRP host and widgets for VTY applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Vty.Widget.Split

Description

 
Synopsis

Documentation

splitVDrag :: (Reflex t, MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) => m () -> m a -> m b -> m (a, b) Source #

A split of the available space into two parts with a draggable separator. Starts with half the space allocated to each, and the first pane has focus. Clicking in a pane switches focus.

splitV Source #

Arguments

:: (Reflex t, Monad m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) 
=> Dynamic t (Int -> Int)

Function used to determine size of first pane based on available size

-> Dynamic t (Bool, Bool)

How to focus the two sub-panes, given that we are focused.

-> m a

Widget for first pane

-> m b

Widget for second pane

-> m (a, b) 

A plain split of the available space into vertically stacked panes. No visual separator is built in here.

splitH Source #

Arguments

:: (Reflex t, Monad m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) 
=> Dynamic t (Int -> Int)

Function used to determine size of first pane based on available size

-> Dynamic t (Bool, Bool)

How to focus the two sub-panes, given that we are focused.

-> m a

Widget for first pane

-> m b

Widget for second pane

-> m (a, b) 

A plain split of the available space into horizontally stacked panes. No visual separator is built in here.