HGL-3.2.3.1: A simple graphics library based on X11 or Win32

Copyright(c) Alastair Reid, 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.HGL.Units

Description

Types for units in a simple graphics library.

Synopsis

Documentation

type Point = (Int, Int) Source

A position within a window, measured in pixels to the right and down from the top left corner.

type Size = (Int, Int) Source

A (width, height) pair, both measured in pixels.

type Angle = Double Source

An angle in degrees (0 to 360).

type Time = Integer Source

Time, measured in milliseconds.