| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Reactive.Banana.WX
- event1 :: w -> Event w (a -> IO ()) -> MomentIO (Event a)
 - event0 :: w -> Event w (IO ()) -> MomentIO (Event ())
 - behavior :: w -> Attr w a -> MomentIO (Behavior a)
 - data Prop' w = (Attr w a) :== (Behavior a)
 - sink :: w -> [Prop' w] -> MomentIO ()
 - module Reactive.Banana.Frameworks
 - eventText :: TextCtrl w -> MomentIO (Event String)
 - behaviorText :: TextCtrl w -> String -> MomentIO (Behavior String)
 - eventSelection :: SingleListBox b -> MomentIO (Event Int)
 - mouseMotion :: EventMouse -> Maybe (Point, Modifiers)
 - mouseEnter :: EventMouse -> Maybe (Point, Modifiers)
 - mouseLeave :: EventMouse -> Maybe (Point, Modifiers)
 - leftDown :: EventMouse -> Maybe (Point, Modifiers)
 - leftUp :: EventMouse -> Maybe (Point, Modifiers)
 - leftDClick :: EventMouse -> Maybe (Point, Modifiers)
 - leftDrag :: EventMouse -> Maybe (Point, Modifiers)
 - rightDown :: EventMouse -> Maybe (Point, Modifiers)
 - rightUp :: EventMouse -> Maybe (Point, Modifiers)
 - rightDClick :: EventMouse -> Maybe (Point, Modifiers)
 - rightDrag :: EventMouse -> Maybe (Point, Modifiers)
 - middleDown :: EventMouse -> Maybe (Point, Modifiers)
 - middleUp :: EventMouse -> Maybe (Point, Modifiers)
 - middleDClick :: EventMouse -> Maybe (Point, Modifiers)
 - middleDrag :: EventMouse -> Maybe (Point, Modifiers)
 - mouseWheel :: EventMouse -> Maybe (Bool, Point, Modifiers)
 - mouseWheelDown :: EventMouse -> Maybe (Point, Modifiers)
 - mouseWheelUp :: EventMouse -> Maybe (Point, Modifiers)
 - event1ToAddHandler :: w -> Event w (a -> IO ()) -> IO (AddHandler a)
 - event0ToEvent1 :: Event w (IO ()) -> Event w (() -> IO ())
 
Synopsis
Utility functions for interfacing with wxHaskell. Note: Useful, but I haven't done any serious design work on these.
General
behavior :: w -> Attr w a -> MomentIO (Behavior a) Source #
Behavior from an attribute.
 Uses fromPoll, so may behave as you expect.
Variant of wx properties that accept a Behavior.
module Reactive.Banana.Frameworks
Specific widgets
eventText :: TextCtrl w -> MomentIO (Event String) Source #
Event that occurs when the user changed the text in text edit widget.
behaviorText :: TextCtrl w -> String -> MomentIO (Behavior String) Source #
Behavior corresponding to user input the text field.
eventSelection :: SingleListBox b -> MomentIO (Event Int) Source #
Event that occurs when the user changed the selection marker in a list box widget.
Mouse event helpers
mouseMotion :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse moves.
mouseEnter :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse enters the boundary.
mouseLeave :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse leaves the boundary.
leftDown :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the left mouse button is pressed.
leftUp :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the left mouse button is released.
leftDClick :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the left mouse button is double-clicked.
leftDrag :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse is dragged around with the left button
 pressed.
rightDown :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the right mouse button is pressed.
rightUp :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the right mouse button is released.
rightDClick :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the right mouse button is double-clicked.
rightDrag :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse is dragged around with the right button
 pressed.
middleDown :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the middle mouse button is pressed.
middleUp :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the middle mouse button is released.
middleDClick :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the middle mouse button is double-clicked.
middleDrag :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse is dragged around with the middle button
 pressed.
mouseWheel :: EventMouse -> Maybe (Bool, Point, Modifiers) Source #
Return Just in the case that the mouse wheel is scrolled.
mouseWheelDown :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse wheel is scrolled downward.
mouseWheelUp :: EventMouse -> Maybe (Point, Modifiers) Source #
Return Just in the case that the mouse wheel is scrolled upward.
Utilities
event1ToAddHandler :: w -> Event w (a -> IO ()) -> IO (AddHandler a) Source #
Obtain an AddHandler from a Event.
event0ToEvent1 :: Event w (IO ()) -> Event w (() -> IO ()) Source #
Obtain an AddHandler from a Event.