packages feed

ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/CSSTransformComponent.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from css-typed-om-1 (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.CSSTransformComponent
       (js_toMatrix, js_setIs2D, js_getIs2D, toMatrix, toMatrix_, setIs2D, getIs2D, CSSTransformComponent(..), gTypeCSSTransformComponent, IsCSSTransformComponent, toCSSTransformComponent)
       where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums

foreign import javascript safe "(($1) => { return $1[\"toMatrix\"](); })"
        js_toMatrix :: CSSTransformComponent -> IO DOMMatrix
-- | <https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix MDN CSSTransformComponent.toMatrix documentation>
toMatrix :: (MonadDOM m, IsCSSTransformComponent self) => self -> m DOMMatrix
toMatrix self = liftDOM ((js_toMatrix ((Types.toCSSTransformComponent self))))

-- | <https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix MDN CSSTransformComponent.toMatrix documentation>
toMatrix_ :: (MonadDOM m, IsCSSTransformComponent self) => self -> m ()
toMatrix_ self = liftDOM (void ((js_toMatrix ((Types.toCSSTransformComponent self)))))

foreign import javascript safe "(($1, $2) => { $1[\"is2D\"] = $2; })"
        js_setIs2D :: CSSTransformComponent -> Bool -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D MDN CSSTransformComponent.is2D documentation>
setIs2D :: (MonadDOM m, IsCSSTransformComponent self) => self -> Bool -> m ()
setIs2D self val = liftDOM (void ((js_setIs2D ((Types.toCSSTransformComponent self)) (val))))

foreign import javascript unsafe "(($1) => { return $1[\"is2D\"]; })"
        js_getIs2D :: CSSTransformComponent -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D MDN CSSTransformComponent.is2D documentation>
getIs2D :: (MonadDOM m, IsCSSTransformComponent self) => self -> m Bool
getIs2D self = liftDOM ((js_getIs2D ((Types.toCSSTransformComponent self))))