module JSDOM.Generated.Screen
(getHeight, getWidth, getColorDepth, getPixelDepth, getAvailLeft,
getAvailTop, getAvailHeight, getAvailWidth, Screen(..),
gTypeScreen)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
getHeight :: (MonadDOM m) => Screen -> m Word
getHeight self
= liftDOM (round <$> ((self ^. js "height") >>= valToNumber))
getWidth :: (MonadDOM m) => Screen -> m Word
getWidth self
= liftDOM (round <$> ((self ^. js "width") >>= valToNumber))
getColorDepth :: (MonadDOM m) => Screen -> m Word
getColorDepth self
= liftDOM (round <$> ((self ^. js "colorDepth") >>= valToNumber))
getPixelDepth :: (MonadDOM m) => Screen -> m Word
getPixelDepth self
= liftDOM (round <$> ((self ^. js "pixelDepth") >>= valToNumber))
getAvailLeft :: (MonadDOM m) => Screen -> m Int
getAvailLeft self
= liftDOM (round <$> ((self ^. js "availLeft") >>= valToNumber))
getAvailTop :: (MonadDOM m) => Screen -> m Int
getAvailTop self
= liftDOM (round <$> ((self ^. js "availTop") >>= valToNumber))
getAvailHeight :: (MonadDOM m) => Screen -> m Word
getAvailHeight self
= liftDOM (round <$> ((self ^. js "availHeight") >>= valToNumber))
getAvailWidth :: (MonadDOM m) => Screen -> m Word
getAvailWidth self
= liftDOM (round <$> ((self ^. js "availWidth") >>= valToNumber))