{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.Rect (js_getTop, getTop, js_getRight, getRight, js_getBottom, getBottom, js_getLeft, getLeft, Rect, castToRect, gTypeRect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord) import Data.Typeable (Typeable) import GHCJS.Types (JSRef(..), JSString, castRef) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSRef(..), FromJSRef(..)) import GHCJS.Marshal.Pure (PToJSRef(..), PFromJSRef(..)) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.Enums foreign import javascript unsafe "$1[\"top\"]" js_getTop :: JSRef Rect -> IO (JSRef CSSPrimitiveValue) -- | getTop :: (MonadIO m) => Rect -> m (Maybe CSSPrimitiveValue) getTop self = liftIO ((js_getTop (unRect self)) >>= fromJSRef) foreign import javascript unsafe "$1[\"right\"]" js_getRight :: JSRef Rect -> IO (JSRef CSSPrimitiveValue) -- | getRight :: (MonadIO m) => Rect -> m (Maybe CSSPrimitiveValue) getRight self = liftIO ((js_getRight (unRect self)) >>= fromJSRef) foreign import javascript unsafe "$1[\"bottom\"]" js_getBottom :: JSRef Rect -> IO (JSRef CSSPrimitiveValue) -- | getBottom :: (MonadIO m) => Rect -> m (Maybe CSSPrimitiveValue) getBottom self = liftIO ((js_getBottom (unRect self)) >>= fromJSRef) foreign import javascript unsafe "$1[\"left\"]" js_getLeft :: JSRef Rect -> IO (JSRef CSSPrimitiveValue) -- | getLeft :: (MonadIO m) => Rect -> m (Maybe CSSPrimitiveValue) getLeft self = liftIO ((js_getLeft (unRect self)) >>= fromJSRef)