Documentation
data WXRawInput Source
data WXWidgetResp Source
data WXWidgetReq Source
type Widget a b = SF (WXRawInput, Event WXWidgetResp, a) (Event WXWidgetReq, b)Source
compReq :: Orientation -> Event WXWidgetReq -> Event WXWidgetReq -> Event WXWidgetReqSource
wxFirstBox :: WXBox b c -> WXBox (b, d) (c, d)Source
maybeChanged :: Eq a => a -> a -> Maybe ()Source
type WXButtonConf = WXButtonState -> WXButtonStateSource
btext :: String -> WXButtonConfSource
benabled :: Bool -> WXButtonConfSource
wxbutton :: WXButtonConf -> WXBox WXButtonConf (Event ())Source
type WXTextConf = WXTextState -> WXTextStateSource
ttext :: String -> WXTextConfSource
wxtext :: WXTextConf -> WXBox WXTextConf ()Source
data WXSliderState Source
WXSliderState | |
|
type WXSliderConf = WXSliderState -> WXSliderStateSource
senabled :: Bool -> WXSliderConfSource
sselection :: Int -> WXSliderConfSource
wxslider :: Orientation -> Int -> Int -> WXSliderConf -> WXBox WXSliderConf IntSource
data WXPictureState Source
type WXPictureConf = WXPictureState -> WXPictureStateSource
ppic :: WXPicture -> WXPictureConfSource
psize :: Size -> WXPictureConfSource
wxWithColor :: Color -> WXPicture -> WXPictureSource
c2lList :: Orientation -> WXContents -> [Layout]Source
removeContents :: Frame () -> WXContents -> IO BoolSource
type WXGUIState = (Frame (), Int, WXContents)Source
type WXGUIRef = IORef WXGUIStateSource
type WXRHandle = ReactHandle (WXRawInput, Event WXWidgetResp, ()) (Event WXWidgetReq, ())Source
getRawInput :: Frame () -> IO WXRawInputSource
initSense :: Frame () -> IO (WXRawInput, Event WXWidgetResp, ())Source
handleWidgetReq :: WXGUIRef -> WXRHandle -> Frame () -> WXPath -> WXContents -> Event WXWidgetReq -> IO (Event WXWidgetResp, WXContents, Bool)Source
mkButtonProps :: WXGUIRef -> WXRHandle -> WXPath -> WXButtonState -> [Prop (Button ())]Source
mkTextProps :: WXTextState -> [Prop (StaticText ())]Source
mkSliderProps :: WXGUIRef -> WXRHandle -> WXPath -> Slider () -> WXSliderState -> [Prop (Slider ())]Source
mkPictureProps :: WXPictureState -> [Prop (Panel ())]Source
pathify :: Event WXWidgetResp -> WXPath -> Event WXWidgetRespSource