packages feed

ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/StylePropertyMapReadOnly.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.StylePropertyMapReadOnly
       (js_get, js_getAll, js_has, js_getSize, get, get_, getAll, getAll_, has, has_, getSize, StylePropertyMapReadOnly(..), gTypeStylePropertyMapReadOnly, IsStylePropertyMapReadOnly, toStylePropertyMapReadOnly)
       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, $2) => { return $1[\"get\"]($2); })"
        js_get :: StylePropertyMapReadOnly -> JSString -> IO UndefinedOrCSSStyleValue
-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get MDN StylePropertyMapReadOnly.get documentation>
get :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m UndefinedOrCSSStyleValue
get self property = liftDOM ((js_get ((Types.toStylePropertyMapReadOnly self)) (toJSString property)))

-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get MDN StylePropertyMapReadOnly.get documentation>
get_ :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m ()
get_ self property = liftDOM (void ((js_get ((Types.toStylePropertyMapReadOnly self)) (toJSString property))))

foreign import javascript safe "(($1, $2) => { return $1[\"getAll\"]($2); })"
        js_getAll :: StylePropertyMapReadOnly -> JSString -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll MDN StylePropertyMapReadOnly.getAll documentation>
getAll :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m [CSSStyleValue]
getAll self property = liftDOM (((js_getAll ((Types.toStylePropertyMapReadOnly self)) (toJSString property)) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll MDN StylePropertyMapReadOnly.getAll documentation>
getAll_ :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m ()
getAll_ self property = liftDOM (void ((js_getAll ((Types.toStylePropertyMapReadOnly self)) (toJSString property))))

foreign import javascript safe "(($1, $2) => { return $1[\"has\"]($2); })"
        js_has :: StylePropertyMapReadOnly -> JSString -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has MDN StylePropertyMapReadOnly.has documentation>
has :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m Bool
has self property = liftDOM ((js_has ((Types.toStylePropertyMapReadOnly self)) (toJSString property)))

-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has MDN StylePropertyMapReadOnly.has documentation>
has_ :: (MonadDOM m, IsStylePropertyMapReadOnly self, ToJSString property) => self -> property -> m ()
has_ self property = liftDOM (void ((js_has ((Types.toStylePropertyMapReadOnly self)) (toJSString property))))

foreign import javascript unsafe "(($1) => { return $1[\"size\"]; })"
        js_getSize :: StylePropertyMapReadOnly -> IO Word
-- | <https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size MDN StylePropertyMapReadOnly.size documentation>
getSize :: (MonadDOM m, IsStylePropertyMapReadOnly self) => self -> m Word
getSize self = liftDOM ((js_getSize ((Types.toStylePropertyMapReadOnly self))))