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

Copyright(c) Sebastiaan la Fleur, 2014
LicenseBSD3
Maintainersebastiaan.la.fleur@gmail.com
Stabilityexperimental
PortabilityAll
Safe HaskellSafe-Inferred
LanguageHaskell98

EventLoop.CommonTypes

Description

All common types throughout the EventLoop module

Synopsis

Documentation

type Pos = (Float, Float) Source

Type to express a position on the screen. It uses the format (x,y). As Canvas is used in the example implementation, remember that the lefttop corner is (0,0) and the leftbottom corner is (0, height of screen).

type Dimension = (Float, Float) Source

Type to express the dimension of an element. It uses the format (w,h).

type Element = [Char] Source

The name of a graphical element. It is used for Mouse to express the name of which element is clicked on.