on a268421 help sign in
elk/libraries/Window.elm
18 lines 415 B history raw
2module Window where
4import Signal (Signal)
5import Native.Window
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.Window.dimensions
12-- The current width of the window.
13width : Signal Int
14width = Native.Window.width
16-- The current height of the window.
17height : Signal Int
18height = Native.Window.height