free-game-0.9.3.5: Create graphical applications for free

Portabilitynon-portable
Stabilityprovisional
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Safe HaskellNone

Graphics.UI.FreeGame.GUI

Description

Provides the free embodiment.

Synopsis

Documentation

type GUI = UI GUIBaseSource

A Functor which represents graphical user interfaces.

_Draw :: Applicative f => (Picture a -> f (Picture a)) -> GUIBase a -> f (GUIBase a)Source

_Draw :: Traversal' (GUIBase a) (Picture a)

_Input :: Applicative f => (GUIInput a -> f (GUIInput a)) -> GUIBase a -> f (GUIBase a)Source

_Input :: Traversal' (GUIBase a) (Ap GUIInput a)

data GUIInput a Source

A free structure that represents inputs.

Constructors

ICharKey Char (Bool -> a) 
ISpecialKey SpecialKey (Bool -> a) 
IMousePosition (V2 Float -> a) 
IMouseWheel (Int -> a) 
IMouseButtonL (Bool -> a) 
IMouseButtonM (Bool -> a) 
IMouseButtonR (Bool -> a) 

data GUIParam Source

Parameters of the application.