phooey-2.0: Functional user interfacesSource codeContentsIndex
Graphics.UI.Phooey.Imperative
Portabilityportable
Stabilityprovisional
Maintainerconal@conal.net
Contents
Widget & layout tools
Simple abstraction around widget containers and frames
Description
Some imperative UI tools.
Synopsis
above :: Layout -> Layout -> Layout
below :: Layout -> Layout -> Layout
leftOf :: Layout -> Layout -> Layout
rightOf :: Layout -> Layout -> Layout
empty' :: Layout
hwidget :: Widget w => w -> Layout
lhwidget :: Widget w => String -> w -> Layout
hsliderDyn :: Window a -> Bool -> [Prop (Slider ())] -> IO (Slider (), (Int, Int) -> IO ())
type Win = Panel ()
type Wio = Win -> IO Layout
runWio :: String -> Wio -> IO ()
Widget & layout tools
above :: Layout -> Layout -> LayoutSource
below :: Layout -> Layout -> LayoutSource
Binary layout combinators
leftOf :: Layout -> Layout -> LayoutSource
rightOf :: Layout -> Layout -> LayoutSource
empty' :: LayoutSource
A stretchy empty layout
hwidget :: Widget w => w -> LayoutSource
Horizontally-filled widget layout
lhwidget :: Widget w => String -> w -> LayoutSource
Labeled, horizontally-filled widget layout
hsliderDyn :: Window a -> Bool -> [Prop (Slider ())] -> IO (Slider (), (Int, Int) -> IO ())Source
Dynamically bounded slider. The main complication is keeping the slider value within the dynamic bounds.
Simple abstraction around widget containers and frames
type Win = Panel ()Source
Container of widgets
type Wio = Win -> IO LayoutSource
Consumes container and yield layout
runWio :: String -> Wio -> IO ()Source
Run a Wio: handle frame & widget creation, and apply layout.
Produced by Haddock version 2.1.0