elm/core/Window.elm
evancz d53cecf3ba List module dependencies in elm and js code.
Planning on having the compiler crawl through to determine dependencies, then compile everything in an appropriate order. This will also let me print out compiler progress in a reasonable order.
2013-02-23 00:19:40 +01:00

17 lines
No EOL
391 B
Elm

module Window where
import Native.Window
-- The current dimensions of the window (i.e. the area viewable to the
-- user, not including scroll bars).
dimensions : Signal (Int,Int)
dimensions = Native.Window.dimensions
-- The current width of the window.
width : Signal Int
width = Native.Window.width
-- The current height of the window.
height : Signal Int
height = Native.Window.height