UISF-0.4.0.0: FRP/UISF.hs
module FRP.UISF
( -- UI functions
UISF
, runUI' -- :: UISF () () -> IO ()
, runUI -- :: UIParams -> UISF () () -> IO ()
, UIParams, defaultUIParams
, uiInitialize, uiClose, uiTitle, uiSize, uiInitFlow, uiTickDelay, uiCloseOnEsc, uiBackground
, Dimension -- type Dimension = (Int, Int)
-- Widgets
, label -- :: String -> UISF a a
, displayStr -- :: UISF String ()
, display -- :: Show a => UISF a ()
, withDisplay -- :: Show b => UISF a b -> UISF a b
, WrapSetting(..) -- data WrapSetting = NoWrap | CharWrap | WordWrap
, displayField -- :: WrapSetting -> UISF String ()
, textbox -- :: String -> UISF (Event String) String
, textField -- :: WrapSetting -> String -> UISF (Event String) String
, textboxE -- :: String -> UISF (Event String) String
, title -- :: String -> UISF a b -> UISF a b
, spacer -- :: UISF a a
, button -- :: String -> UISF () Bool
, stickyButton -- :: String -> UISF () Bool
, checkbox -- :: String -> Bool -> UISF () Bool
, checkGroup -- :: [(String, a)] -> UISF () [a]
, radio -- :: [String] -> Int -> UISF () Int
, hSlider, vSlider -- :: RealFrac a => (a, a) -> a -> UISF () a
, hiSlider, viSlider -- :: Integral a => a -> (a, a) -> a -> UISF () a
, realtimeGraph -- :: RealFrac a => Layout -> Time -> Color -> UISF [(a,Time)] ()
, Color (..) -- data Color = Black | Blue | Green | Cyan | Red | Magenta | Yellow | White ...
, histogram -- :: RealFrac a => Layout -> UISF (Event [a]) ()
, histogramWithScale -- :: RealFrac a => Layout -> UISF (SEvent [(a,String)]) ()
, scrollable -- :: Layout -> Dimension -> UISF a b -> UISF a b
, listbox -- :: (Eq a, Show a) => [a] -> Int -> UISF (SEvent [a], SEvent Int) Int
, listbox' -- :: (Eq a, Show a) => UISF ([a], Int) Int
, canvas -- :: Dimension -> UISF (Event Graphic) ()
, canvas' -- :: Layout -> (a -> Dimension -> Graphic) -> UISF (Event a) ()
-- Widget Utilities
, topDown, bottomUp, leftRight, rightLeft -- :: UISF a b -> UISF a b
, pad -- :: (Int, Int, Int, Int) -> UISF a b -> UISF a b
, setSize -- :: Dimension -> UISF a b -> UISF a b
, setLayout -- :: Layout -> UISF a b -> UISF a b
, makeLayout -- :: LayoutType -> LayoutType -> Layout
, LayoutType (..) -- data LayoutType = Stretchy { minSize :: Int } | Fixed { fixedSize :: Int }
, Layout -- data Layout = Layout {..}
-- Time, effects, and asynchrony
, getTime -- :: UISF () Time
, getDeltaTime -- :: UISF () DeltaT
, ArrowIO(..)
, asyncVT
, asyncE
, asyncC
, module FRP.UISF.AuxFunctions
, module Control.Arrow
) where
import FRP.UISF.UITypes
import FRP.UISF.UISF
import FRP.UISF.Widget
import FRP.UISF.Graphics (Color (..), WrapSetting(..),Dimension)
import FRP.UISF.AuxFunctions
import FRP.UISF.Asynchrony
import Control.Arrow
{-# DEPRECATED getTime "As of UISF-0.4.0.0, use accumTime instead, which is a little different but should work fine" #-}
getTime :: UISF () Time
getTime = accumTime