tinytools-vty-0.1.0.4: tinytools-vty is a terminal based monospace unicode diagram editing tool
Safe HaskellSafe-Inferred
LanguageHaskell2010

Potato.Reflex.Vty.Widget

Synopsis

Documentation

splitHDrag Source #

Arguments

:: (Reflex t, MonadFix m, MonadHold t m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasFocusReader t m) 
=> Int

initial width of left panel

-> m () 
-> m a 
-> m b 
-> m (a, b) 

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.

data Drag2 Source #

Same as Drag but able to track drag start case

Constructors

Drag2 

Fields

Instances

Instances details
Show Drag2 Source # 
Instance details

Defined in Potato.Reflex.Vty.Widget

Methods

showsPrec :: Int -> Drag2 -> ShowS #

show :: Drag2 -> String #

showList :: [Drag2] -> ShowS #

Eq Drag2 Source # 
Instance details

Defined in Potato.Reflex.Vty.Widget

Methods

(==) :: Drag2 -> Drag2 -> Bool #

(/=) :: Drag2 -> Drag2 -> Bool #

Ord Drag2 Source # 
Instance details

Defined in Potato.Reflex.Vty.Widget

Methods

compare :: Drag2 -> Drag2 -> Ordering #

(<) :: Drag2 -> Drag2 -> Bool #

(<=) :: Drag2 -> Drag2 -> Bool #

(>) :: Drag2 -> Drag2 -> Bool #

(>=) :: Drag2 -> Drag2 -> Bool #

max :: Drag2 -> Drag2 -> Drag2 #

min :: Drag2 -> Drag2 -> Drag2 #

drag2 :: (Reflex t, MonadFix m, MonadHold t m, HasInput t m) => Button -> m (Event t Drag2) Source #

Same as drag but returns Drag2 which tracks drag start events