Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- data InputEvent
- data Keyboard = KeyPress KeyboardButton
- type KeyboardButton = [Char]
- data Mouse
- data MouseButton
- data SystemMessageIn
- = Setup
- | Background
- | Time
Documentation
data InputEvent Source
The central InputEvent
type.
InMouse Mouse | A |
InKeyboard Keyboard | A |
InSysMessage SystemMessageIn | A |
type KeyboardButton = [Char] Source
Type to express how a KeyboardButton
is modelled.
Datatype to express the different Mouse
events.
The Pos
expresses where on the screen the event happened.
The Element
expresses on which top element on screen the event happened. The Element
value is the name of the GObject
.
MouseClick MouseButton Pos Element | Expresses a complete |
MouseUp MouseButton Pos Element | Expresses when a |
MouseDown MouseButton Pos Element | Expresses when a |
data SystemMessageIn Source
The different possible SystemMessageIn
s.
Setup | A request for the |
Background | A request for the |
Time | When a timer has been spawn, each 'tick' a |