Safe Haskell | None |
---|---|
Language | Haskell98 |
EventLoop
Documentation
start :: (a -> InputEvent -> ([OutputEvent], a)) -> a -> IO () Source
data InputEvent Source
Constructors
InMouse Mouse | |
InKeyboard Keyboard | |
InSysMessage SystemMessageIn |
Constructors
KeyPress KeyboardButton |
type KeyboardButton = [Char] Source
Constructors
MouseClick MouseButton Pos Element | |
MouseUp MouseButton Pos Element | |
MouseDown MouseButton Pos Element |
data SystemMessageIn Source
Constructors
Setup | |
Background | |
Time |
data OutputEvent Source
Constructors
OutGraphical Graphical | |
OutSysMessage [SystemMessageOut] |
data SystemMessageOut Source
Constructors
CanvasSetup Dimension | |
Timer Bool | |
Close |
outSingle :: OutputEvent -> IO () Source