jsaddle-dom-0.10.0.0: src/JSDOM/Generated/SVGFilterPrimitiveStandardAttributes.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from filter-effects-1 (webref). Do not edit.
module JSDOM.Generated.SVGFilterPrimitiveStandardAttributes
(getX, getY, getWidth, getHeight, getResult, SVGFilterPrimitiveStandardAttributes(..), gTypeSVGFilterPrimitiveStandardAttributes, IsSVGFilterPrimitiveStandardAttributes, toSVGFilterPrimitiveStandardAttributes)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/x MDN SVGFilterPrimitiveStandardAttributes.x documentation>
getX :: (MonadDOM m, IsSVGFilterPrimitiveStandardAttributes self) => self -> m SVGAnimatedLength
getX self = liftDOM ((((Types.toSVGFilterPrimitiveStandardAttributes self) ^. js "x") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/y MDN SVGFilterPrimitiveStandardAttributes.y documentation>
getY :: (MonadDOM m, IsSVGFilterPrimitiveStandardAttributes self) => self -> m SVGAnimatedLength
getY self = liftDOM ((((Types.toSVGFilterPrimitiveStandardAttributes self) ^. js "y") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/width MDN SVGFilterPrimitiveStandardAttributes.width documentation>
getWidth :: (MonadDOM m, IsSVGFilterPrimitiveStandardAttributes self) => self -> m SVGAnimatedLength
getWidth self = liftDOM ((((Types.toSVGFilterPrimitiveStandardAttributes self) ^. js "width") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/height MDN SVGFilterPrimitiveStandardAttributes.height documentation>
getHeight :: (MonadDOM m, IsSVGFilterPrimitiveStandardAttributes self) => self -> m SVGAnimatedLength
getHeight self = liftDOM ((((Types.toSVGFilterPrimitiveStandardAttributes self) ^. js "height") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/result MDN SVGFilterPrimitiveStandardAttributes.result documentation>
getResult :: (MonadDOM m, IsSVGFilterPrimitiveStandardAttributes self) => self -> m SVGAnimatedString
getResult self = liftDOM ((((Types.toSVGFilterPrimitiveStandardAttributes self) ^. js "result") >>= fromJSValUnchecked))