soegtk-0.12.1: GUI functions as used in the book "The Haskell School of Expression".

Portabilityportable (depends on GHC)
Stabilitystable
Maintainergtk2hs-devel@lists.sourceforge.net
Safe HaskellSafe-Infered

Graphics.SOE.Gtk

Description

An alternative implementation of the graphics library used in The Haskell School of Expression, by Paul Hudak, http://www.haskell.org/soe/.

It has exaclty the same interface as the original implementation Graphics.SOE. See the original for an API reference.

Synopsis

Documentation

type Title = String

type Size = (Int, Int)

data Window

data Graphic

type Point = (Int, Int)

type Angle = Float

arc :: Point -> Point -> Angle -> Angle -> Graphic

data Region

data Event

Constructors

Key 

Fields

char :: Char
 
isDown :: Bool
 
Button 

Fields

pt :: Point
 
isLeft :: Bool
 
isDown :: Bool
 
MouseMove 

Fields

pt :: Point
 
Resize 
Closed 

Instances