twentefp-eventloop-graphics-0.1.0.3: Used as Lab Assignments Environment at Univeriteit Twente

Safe HaskellSafe-Inferred
LanguageHaskell98

EventLoop.Input

Synopsis

Documentation

data Keyboard Source

Datatype to express the different Keyboard events.

Constructors

KeyPress KeyboardButton 

type KeyboardButton = [Char] Source

Type to express how a KeyboardButton is modelled.

data Mouse Source

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.

Constructors

MouseClick MouseButton Pos Element

Expresses a complete MouseClick consisting of a MouseUp and a MouseDown.

MouseUp MouseButton Pos Element

Expresses when a MouseButton moves upward.

MouseDown MouseButton Pos Element

Expresses when a MouseButton is pushed down.

Instances

data MouseButton Source

The MouseButton on the mouse.

Constructors

MLeft 
MRight 
MMiddle 

Instances

data SystemMessageIn Source

The different possible SystemMessageIns.

Constructors

Setup

A request for the Setup. This should be generated when the connection to a client is made. The answer should be a CanvasSetup message.

Background

A request for the Background. This should be generated when the connection to a client is made. The answer could be the background of the graphical application.

Time

When a timer has been spawn, each 'tick' a Time is generated by the client to let the server know it is time.