{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLSourceElement
(setSrc, getSrc, setType, getType, setSrcset, getSrcset, setSizes,
getSizes, setMedia, getMedia, HTMLSourceElement(..),
gTypeHTMLSourceElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Enums
setSrc ::
(MonadDOM m, ToJSString val) => HTMLSourceElement -> val -> m ()
setSrc self val = liftDOM (self ^. jss "src" (toJSVal val))
getSrc ::
(MonadDOM m, FromJSString result) => HTMLSourceElement -> m result
getSrc self = liftDOM ((self ^. js "src") >>= fromJSValUnchecked)
setType ::
(MonadDOM m, ToJSString val) => HTMLSourceElement -> val -> m ()
setType self val = liftDOM (self ^. jss "type" (toJSVal val))
getType ::
(MonadDOM m, FromJSString result) => HTMLSourceElement -> m result
getType self = liftDOM ((self ^. js "type") >>= fromJSValUnchecked)
setSrcset ::
(MonadDOM m, ToJSString val) => HTMLSourceElement -> val -> m ()
setSrcset self val = liftDOM (self ^. jss "srcset" (toJSVal val))
getSrcset ::
(MonadDOM m, FromJSString result) => HTMLSourceElement -> m result
getSrcset self
= liftDOM ((self ^. js "srcset") >>= fromJSValUnchecked)
setSizes ::
(MonadDOM m, ToJSString val) => HTMLSourceElement -> val -> m ()
setSizes self val = liftDOM (self ^. jss "sizes" (toJSVal val))
getSizes ::
(MonadDOM m, FromJSString result) => HTMLSourceElement -> m result
getSizes self
= liftDOM ((self ^. js "sizes") >>= fromJSValUnchecked)
setMedia ::
(MonadDOM m, ToJSString val) => HTMLSourceElement -> val -> m ()
setMedia self val = liftDOM (self ^. jss "media" (toJSVal val))
getMedia ::
(MonadDOM m, FromJSString result) => HTMLSourceElement -> m result
getMedia self
= liftDOM ((self ^. js "media") >>= fromJSValUnchecked)