ghcjs-dom-0.2.2.0: src/GHCJS/DOM/JSFFI/Generated/SVGZoomEvent.hs
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGZoomEvent
(js_getZoomRectScreen, getZoomRectScreen, js_getPreviousScale,
getPreviousScale, js_getPreviousTranslate, getPreviousTranslate,
js_getNewScale, getNewScale, js_getNewTranslate, getNewTranslate,
SVGZoomEvent, castToSVGZoomEvent, gTypeSVGZoomEvent)
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)
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[\"zoomRectScreen\"]"
js_getZoomRectScreen :: SVGZoomEvent -> IO (Nullable SVGRect)
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomEvent.zoomRectScreen Mozilla SVGZoomEvent.zoomRectScreen documentation>
getZoomRectScreen ::
(MonadIO m) => SVGZoomEvent -> m (Maybe SVGRect)
getZoomRectScreen self
= liftIO (nullableToMaybe <$> (js_getZoomRectScreen (self)))
foreign import javascript unsafe "$1[\"previousScale\"]"
js_getPreviousScale :: SVGZoomEvent -> IO Float
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomEvent.previousScale Mozilla SVGZoomEvent.previousScale documentation>
getPreviousScale :: (MonadIO m) => SVGZoomEvent -> m Float
getPreviousScale self = liftIO (js_getPreviousScale (self))
foreign import javascript unsafe "$1[\"previousTranslate\"]"
js_getPreviousTranslate :: SVGZoomEvent -> IO (Nullable SVGPoint)
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomEvent.previousTranslate Mozilla SVGZoomEvent.previousTranslate documentation>
getPreviousTranslate ::
(MonadIO m) => SVGZoomEvent -> m (Maybe SVGPoint)
getPreviousTranslate self
= liftIO (nullableToMaybe <$> (js_getPreviousTranslate (self)))
foreign import javascript unsafe "$1[\"newScale\"]" js_getNewScale
:: SVGZoomEvent -> IO Float
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomEvent.newScale Mozilla SVGZoomEvent.newScale documentation>
getNewScale :: (MonadIO m) => SVGZoomEvent -> m Float
getNewScale self = liftIO (js_getNewScale (self))
foreign import javascript unsafe "$1[\"newTranslate\"]"
js_getNewTranslate :: SVGZoomEvent -> IO (Nullable SVGPoint)
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomEvent.newTranslate Mozilla SVGZoomEvent.newTranslate documentation>
getNewTranslate ::
(MonadIO m) => SVGZoomEvent -> m (Maybe SVGPoint)
getNewTranslate self
= liftIO (nullableToMaybe <$> (js_getNewTranslate (self)))