on 2d4afca help sign in
elk/libraries/Window.elm
18 lines 404 B history raw
2module Window where
4import Signal (Signal)
5import Native.Window as Native
7-- The current dimensions of the window (i.e. the area viewable to the
8-- user, not including scroll bars).
9dimensions : Signal (Int,Int)
10dimensions = Native.dimensions
12-- The current width of the window.
13width : Signal Int
14width = Native.width
16-- The current height of the window.
17height : Signal Int
18height = Native.height