{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLAppletElement
(setAlign, getAlign, setAlt, getAlt, setArchive, getArchive,
setCode, getCode, setCodeBase, getCodeBase, setHeight, getHeight,
setHspace, getHspace, setName, getName, setObject, getObject,
setVspace, getVspace, setWidth, getWidth, HTMLAppletElement(..),
gTypeHTMLAppletElement)
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
setAlign ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setAlign self val = liftDOM (self ^. jss "align" (toJSVal val))
getAlign ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getAlign self
= liftDOM ((self ^. js "align") >>= fromJSValUnchecked)
setAlt ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setAlt self val = liftDOM (self ^. jss "alt" (toJSVal val))
getAlt ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getAlt self = liftDOM ((self ^. js "alt") >>= fromJSValUnchecked)
setArchive ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setArchive self val = liftDOM (self ^. jss "archive" (toJSVal val))
getArchive ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getArchive self
= liftDOM ((self ^. js "archive") >>= fromJSValUnchecked)
setCode ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setCode self val = liftDOM (self ^. jss "code" (toJSVal val))
getCode ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getCode self = liftDOM ((self ^. js "code") >>= fromJSValUnchecked)
setCodeBase ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setCodeBase self val
= liftDOM (self ^. jss "codeBase" (toJSVal val))
getCodeBase ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getCodeBase self
= liftDOM ((self ^. js "codeBase") >>= fromJSValUnchecked)
setHeight ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setHeight self val = liftDOM (self ^. jss "height" (toJSVal val))
getHeight ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getHeight self
= liftDOM ((self ^. js "height") >>= fromJSValUnchecked)
setHspace :: (MonadDOM m) => HTMLAppletElement -> Word -> m ()
setHspace self val = liftDOM (self ^. jss "hspace" (toJSVal val))
getHspace :: (MonadDOM m) => HTMLAppletElement -> m Word
getHspace self
= liftDOM (round <$> ((self ^. js "hspace") >>= valToNumber))
setName ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setName self val = liftDOM (self ^. jss "name" (toJSVal val))
getName ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getName self = liftDOM ((self ^. js "name") >>= fromJSValUnchecked)
setObject ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setObject self val = liftDOM (self ^. jss "object" (toJSVal val))
getObject ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getObject self
= liftDOM ((self ^. js "object") >>= fromJSValUnchecked)
setVspace :: (MonadDOM m) => HTMLAppletElement -> Word -> m ()
setVspace self val = liftDOM (self ^. jss "vspace" (toJSVal val))
getVspace :: (MonadDOM m) => HTMLAppletElement -> m Word
getVspace self
= liftDOM (round <$> ((self ^. js "vspace") >>= valToNumber))
setWidth ::
(MonadDOM m, ToJSString val) => HTMLAppletElement -> val -> m ()
setWidth self val = liftDOM (self ^. jss "width" (toJSVal val))
getWidth ::
(MonadDOM m, FromJSString result) => HTMLAppletElement -> m result
getWidth self
= liftDOM ((self ^. js "width") >>= fromJSValUnchecked)