{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.SVGGraphicsElement (js_getBBox, getBBox, getBBox_, getBBoxUnchecked, js_getCTM, getCTM, getCTM_, getCTMUnchecked, js_getScreenCTM, getScreenCTM, getScreenCTM_, getScreenCTMUnchecked, js_getTransformToElement, getTransformToElement, getTransformToElement_, getTransformToElementUnchecked, js_getTransform, getTransform, getTransformUnchecked, js_getNearestViewportElement, getNearestViewportElement, getNearestViewportElementUnchecked, js_getFarthestViewportElement, getFarthestViewportElement, getFarthestViewportElementUnchecked, SVGGraphicsElement, castToSVGGraphicsElement, gTypeSVGGraphicsElement, IsSVGGraphicsElement, toSVGGraphicsElement) 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 (JSVal(..), JSString) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSVal(..), FromJSVal(..)) import GHCJS.Marshal.Pure (PToJSVal(..), PFromJSVal(..)) import Control.Monad (void) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import Data.Maybe (fromJust) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.JSFFI.Generated.Enums foreign import javascript unsafe "$1[\"getBBox\"]()" js_getBBox :: SVGGraphicsElement -> IO (Nullable SVGRect) -- | getBBox :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGRect) getBBox self = liftIO (nullableToMaybe <$> (js_getBBox (toSVGGraphicsElement self))) -- | getBBox_ :: (MonadIO m, IsSVGGraphicsElement self) => self -> m () getBBox_ self = liftIO (void (js_getBBox (toSVGGraphicsElement self))) -- | getBBoxUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGRect getBBoxUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getBBox (toSVGGraphicsElement self))) foreign import javascript unsafe "$1[\"getCTM\"]()" js_getCTM :: SVGGraphicsElement -> IO (Nullable SVGMatrix) -- | getCTM :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGMatrix) getCTM self = liftIO (nullableToMaybe <$> (js_getCTM (toSVGGraphicsElement self))) -- | getCTM_ :: (MonadIO m, IsSVGGraphicsElement self) => self -> m () getCTM_ self = liftIO (void (js_getCTM (toSVGGraphicsElement self))) -- | getCTMUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGMatrix getCTMUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getCTM (toSVGGraphicsElement self))) foreign import javascript unsafe "$1[\"getScreenCTM\"]()" js_getScreenCTM :: SVGGraphicsElement -> IO (Nullable SVGMatrix) -- | getScreenCTM :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGMatrix) getScreenCTM self = liftIO (nullableToMaybe <$> (js_getScreenCTM (toSVGGraphicsElement self))) -- | getScreenCTM_ :: (MonadIO m, IsSVGGraphicsElement self) => self -> m () getScreenCTM_ self = liftIO (void (js_getScreenCTM (toSVGGraphicsElement self))) -- | getScreenCTMUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGMatrix getScreenCTMUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getScreenCTM (toSVGGraphicsElement self))) foreign import javascript unsafe "$1[\"getTransformToElement\"]($2)" js_getTransformToElement :: SVGGraphicsElement -> Nullable SVGElement -> IO (Nullable SVGMatrix) -- | getTransformToElement :: (MonadIO m, IsSVGGraphicsElement self, IsSVGElement element) => self -> Maybe element -> m (Maybe SVGMatrix) getTransformToElement self element = liftIO (nullableToMaybe <$> (js_getTransformToElement (toSVGGraphicsElement self) (maybeToNullable (fmap toSVGElement element)))) -- | getTransformToElement_ :: (MonadIO m, IsSVGGraphicsElement self, IsSVGElement element) => self -> Maybe element -> m () getTransformToElement_ self element = liftIO (void (js_getTransformToElement (toSVGGraphicsElement self) (maybeToNullable (fmap toSVGElement element)))) -- | getTransformToElementUnchecked :: (MonadIO m, IsSVGGraphicsElement self, IsSVGElement element) => self -> Maybe element -> m SVGMatrix getTransformToElementUnchecked self element = liftIO (fromJust . nullableToMaybe <$> (js_getTransformToElement (toSVGGraphicsElement self) (maybeToNullable (fmap toSVGElement element)))) foreign import javascript unsafe "$1[\"transform\"]" js_getTransform :: SVGGraphicsElement -> IO (Nullable SVGAnimatedTransformList) -- | getTransform :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGAnimatedTransformList) getTransform self = liftIO (nullableToMaybe <$> (js_getTransform (toSVGGraphicsElement self))) -- | getTransformUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGAnimatedTransformList getTransformUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getTransform (toSVGGraphicsElement self))) foreign import javascript unsafe "$1[\"nearestViewportElement\"]" js_getNearestViewportElement :: SVGGraphicsElement -> IO (Nullable SVGElement) -- | getNearestViewportElement :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGElement) getNearestViewportElement self = liftIO (nullableToMaybe <$> (js_getNearestViewportElement (toSVGGraphicsElement self))) -- | getNearestViewportElementUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGElement getNearestViewportElementUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getNearestViewportElement (toSVGGraphicsElement self))) foreign import javascript unsafe "$1[\"farthestViewportElement\"]" js_getFarthestViewportElement :: SVGGraphicsElement -> IO (Nullable SVGElement) -- | getFarthestViewportElement :: (MonadIO m, IsSVGGraphicsElement self) => self -> m (Maybe SVGElement) getFarthestViewportElement self = liftIO (nullableToMaybe <$> (js_getFarthestViewportElement (toSVGGraphicsElement self))) -- | getFarthestViewportElementUnchecked :: (MonadIO m, IsSVGGraphicsElement self) => self -> m SVGElement getFarthestViewportElementUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getFarthestViewportElement (toSVGGraphicsElement self)))