packages feed

ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/CSSMathNegate.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.CSSMathNegate
       (js_newCSSMathNegate, js_getValue, newCSSMathNegate, getValue, CSSMathNegate(..), gTypeCSSMathNegate)
       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 new globalThis[\"CSSMathNegate\"]($1); })"
        js_newCSSMathNegate :: CSSNumberish -> IO CSSMathNegate
-- | <https://developer.mozilla.org/docs/Web/API/CSSMathNegate/CSSMathNegate MDN CSSMathNegate. documentation>
newCSSMathNegate :: (MonadDOM m, IsCSSNumberish arg) => arg -> m CSSMathNegate
newCSSMathNegate arg = liftDOM ((js_newCSSMathNegate (Types.toCSSNumberish arg)))

foreign import javascript unsafe "(($1) => { return $1[\"value\"]; })"
        js_getValue :: CSSMathNegate -> IO CSSNumericValue
-- | <https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value MDN CSSMathNegate.value documentation>
getValue :: (MonadDOM m) => CSSMathNegate -> m CSSNumericValue
getValue self = liftDOM ((js_getValue (self)))