ramus-0.1.0: Elm signal system for Haskell

Safe HaskellNone
LanguageHaskell2010

Ramus.DOM

Synopsis

Documentation

data CoordinatePair #

Constructors

CoordinatePair 

Fields

data DimensionPair #

Constructors

DimensionPair 

Fields

keyPressed :: Int -> IO (Signal Bool) #

Creates a signal which will be true when the key matching the given key |code is pressed, and false when it's released.

mouseButton :: Int -> IO (Signal Bool) #

Creates a signal which will be true when the given mouse button is |pressed, and false when it's released.

data Touch #

Constructors

Touch 

touch :: IO (Signal [Touch]) #

A signal containing the current state of the touch device, as described by |the Touch record type.

tap :: IO (Signal Bool) #

A signal which will be true when at least one finger is touching the |touch device, and false otherwise.

mousePos :: IO (Signal CoordinatePair) #

A signal containing the current mouse position.

animationFrame :: IO (Signal Time) #

A signal which yields the current time, as determined by now, on every |animation frame (see [https:/developer.mozilla.orgen-USdocsWebAPIwindow/requestAnimationFrame]).

windowDimensions :: IO (Signal DimensionPair) #

A signal which contains the document window's current width and height.