WXFruit
Documentation
data WXRawInput Source
Constructors
WXRawInput | |
Fields
|
data WXWidgetResp Source
data WXWidgetReq Source
Constructors
type Widget a b = SF (WXRawInput, Event WXWidgetResp, a) (Event WXWidgetReq, b)Source
compReq :: Orientation -> Event WXWidgetReq -> Event WXWidgetReq -> Event WXWidgetReqSource
Constructors
WXBox (Orientation -> WXGUI b c) |
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
Constructors
WXSliderState | |
Fields
|
Instances
type WXSliderConf = WXSliderState -> WXSliderStateSource
senabled :: Bool -> WXSliderConfSource
sselection :: Int -> WXSliderConfSource
wxslider :: Orientation -> Int -> Int -> WXSliderConf -> WXBox WXSliderConf IntSource
data WXPictureState Source
Constructors
WXPictureState | |
type WXPictureConf = WXPictureState -> WXPictureStateSource
ppic :: WXPicture -> WXPictureConfSource
psize :: Size -> WXPictureConfSource
wxWithColor :: Color -> WXPicture -> WXPictureSource
data WXContents Source
Constructors
WXCEmpty | |
WXCLeaf WXWidget | |
WXCComp Orientation WXContents WXContents |
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