ramus-0.0.1: Elm signal system for Haskell

Safe HaskellNone
LanguageHaskell2010

Ramus.DOM

Synopsis

Documentation

data CoordinatePair Source #

Constructors

CoordinatePair 

Fields

data DimensionPair Source #

Constructors

DimensionPair 

Fields

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

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) Source #

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

data Touch Source #

Constructors

Touch 

touch :: IO (Signal [Touch]) Source #

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

tap :: IO (Signal Bool) Source #

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

mousePos :: IO (Signal CoordinatePair) Source #

A signal containing the current mouse position.

animationFrame :: IO (Signal Time) Source #

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) Source #

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