gloss-1.13.2.2: Painless 2D vector graphics, animations and simulations.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Gloss.Interface.IO.Interact

Description

Display mode is for drawing a static picture.

Synopsis

Documentation

interactIO Source #

Arguments

:: Display

Display mode.

-> Color

Background color.

-> world

Initial world state.

-> (world -> IO Picture)

A function to produce the current picture.

-> (Event -> world -> IO world)

A function to handle input events.

-> (Controller -> IO ())

Callback to take the display controller.

-> IO () 

Open a new window and interact with an infrequently updated picture.

Similar to displayIO, except that you manage your own events.

data Controller Source #

Functions to asynchronously control a Gloss display.

Constructors

Controller 

Fields

data Event Source #

Possible input events.

Instances

Instances details
Show Event Source # 
Instance details

Defined in Graphics.Gloss.Internals.Interface.Event

Eq Event Source # 
Instance details

Defined in Graphics.Gloss.Internals.Interface.Event

Methods

(==) :: Event -> Event -> Bool Source #

(/=) :: Event -> Event -> Bool Source #

data Key Source #

Instances

Instances details
Show Key Source # 
Instance details

Defined in Graphics.Gloss.Internals.Interface.Backend.Types

Eq Key Source # 
Instance details

Defined in Graphics.Gloss.Internals.Interface.Backend.Types

Methods

(==) :: Key -> Key -> Bool Source #

(/=) :: Key -> Key -> Bool Source #

Ord Key Source # 
Instance details

Defined in Graphics.Gloss.Internals.Interface.Backend.Types

Methods

compare :: Key -> Key -> Ordering Source #

(<) :: Key -> Key -> Bool Source #

(<=) :: Key -> Key -> Bool Source #

(>) :: Key -> Key -> Bool Source #

(>=) :: Key -> Key -> Bool Source #

max :: Key -> Key -> Key Source #

min :: Key -> Key -> Key Source #

data SpecialKey Source #