module JSDOM.Generated.SVGImageElement
(getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,
getWidth, getWidthUnsafe, getWidthUnchecked, getHeight,
getHeightUnsafe, getHeightUnchecked, getPreserveAspectRatio,
getPreserveAspectRatioUnsafe, getPreserveAspectRatioUnchecked,
SVGImageElement(..), gTypeSVGImageElement)
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 Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array)
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
getX ::
(MonadDOM m) => SVGImageElement -> m (Maybe SVGAnimatedLength)
getX self = liftDOM ((self ^. js "x") >>= fromJSVal)
getXUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGImageElement -> m SVGAnimatedLength
getXUnsafe self
= liftDOM
(((self ^. js "x") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getXUnchecked ::
(MonadDOM m) => SVGImageElement -> m SVGAnimatedLength
getXUnchecked self
= liftDOM ((self ^. js "x") >>= fromJSValUnchecked)
getY ::
(MonadDOM m) => SVGImageElement -> m (Maybe SVGAnimatedLength)
getY self = liftDOM ((self ^. js "y") >>= fromJSVal)
getYUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGImageElement -> m SVGAnimatedLength
getYUnsafe self
= liftDOM
(((self ^. js "y") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getYUnchecked ::
(MonadDOM m) => SVGImageElement -> m SVGAnimatedLength
getYUnchecked self
= liftDOM ((self ^. js "y") >>= fromJSValUnchecked)
getWidth ::
(MonadDOM m) => SVGImageElement -> m (Maybe SVGAnimatedLength)
getWidth self = liftDOM ((self ^. js "width") >>= fromJSVal)
getWidthUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGImageElement -> m SVGAnimatedLength
getWidthUnsafe self
= liftDOM
(((self ^. js "width") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getWidthUnchecked ::
(MonadDOM m) => SVGImageElement -> m SVGAnimatedLength
getWidthUnchecked self
= liftDOM ((self ^. js "width") >>= fromJSValUnchecked)
getHeight ::
(MonadDOM m) => SVGImageElement -> m (Maybe SVGAnimatedLength)
getHeight self = liftDOM ((self ^. js "height") >>= fromJSVal)
getHeightUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGImageElement -> m SVGAnimatedLength
getHeightUnsafe self
= liftDOM
(((self ^. js "height") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getHeightUnchecked ::
(MonadDOM m) => SVGImageElement -> m SVGAnimatedLength
getHeightUnchecked self
= liftDOM ((self ^. js "height") >>= fromJSValUnchecked)
getPreserveAspectRatio ::
(MonadDOM m) =>
SVGImageElement -> m (Maybe SVGAnimatedPreserveAspectRatio)
getPreserveAspectRatio self
= liftDOM ((self ^. js "preserveAspectRatio") >>= fromJSVal)
getPreserveAspectRatioUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGImageElement -> m SVGAnimatedPreserveAspectRatio
getPreserveAspectRatioUnsafe self
= liftDOM
(((self ^. js "preserveAspectRatio") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getPreserveAspectRatioUnchecked ::
(MonadDOM m) => SVGImageElement -> m SVGAnimatedPreserveAspectRatio
getPreserveAspectRatioUnchecked self
= liftDOM
((self ^. js "preserveAspectRatio") >>= fromJSValUnchecked)