jsaddle-dom-0.10.0.0: src/JSDOM/Generated/SVGFEDisplacementMapElement.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.SVGFEDisplacementMapElement
(getIn1, getIn2, getScale, getXChannelSelector, getYChannelSelector, pattern SVG_CHANNEL_UNKNOWN, pattern SVG_CHANNEL_R, pattern SVG_CHANNEL_G, pattern SVG_CHANNEL_B, pattern SVG_CHANNEL_A, SVGFEDisplacementMapElement(..), gTypeSVGFEDisplacementMapElement)
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/SVGFEDisplacementMapElement/in1 MDN SVGFEDisplacementMapElement.in1 documentation>
getIn1 :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedString
getIn1 self = liftDOM (((self ^. js "in1") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in2 MDN SVGFEDisplacementMapElement.in2 documentation>
getIn2 :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedString
getIn2 self = liftDOM (((self ^. js "in2") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/scale MDN SVGFEDisplacementMapElement.scale documentation>
getScale :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedNumber
getScale self = liftDOM (((self ^. js "scale") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector MDN SVGFEDisplacementMapElement.xChannelSelector documentation>
getXChannelSelector :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedEnumeration
getXChannelSelector self = liftDOM (((self ^. js "xChannelSelector") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector MDN SVGFEDisplacementMapElement.yChannelSelector documentation>
getYChannelSelector :: (MonadDOM m) => SVGFEDisplacementMapElement -> m SVGAnimatedEnumeration
getYChannelSelector self = liftDOM (((self ^. js "yChannelSelector") >>= fromJSValUnchecked))
pattern SVG_CHANNEL_UNKNOWN = 0
pattern SVG_CHANNEL_R = 1
pattern SVG_CHANNEL_G = 2
pattern SVG_CHANNEL_B = 3
pattern SVG_CHANNEL_A = 4