module JSDOM.Generated.HTMLMarqueeElement
(start, stop, setBehavior, getBehavior, setBgColor, getBgColor,
setDirection, getDirection, setHeight, getHeight, setHspace,
getHspace, setLoop, getLoop, setScrollAmount, getScrollAmount,
setScrollDelay, getScrollDelay, setTrueSpeed, getTrueSpeed,
setVspace, getVspace, setWidth, getWidth, HTMLMarqueeElement(..),
gTypeHTMLMarqueeElement)
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)
import JSDOM.Enums
start :: (MonadDOM m) => HTMLMarqueeElement -> m ()
start self = liftDOM (void (self ^. jsf "start" ()))
stop :: (MonadDOM m) => HTMLMarqueeElement -> m ()
stop self = liftDOM (void (self ^. jsf "stop" ()))
setBehavior ::
(MonadDOM m, ToJSString val) => HTMLMarqueeElement -> val -> m ()
setBehavior self val
= liftDOM (self ^. jss "behavior" (toJSVal val))
getBehavior ::
(MonadDOM m, FromJSString result) => HTMLMarqueeElement -> m result
getBehavior self
= liftDOM ((self ^. js "behavior") >>= fromJSValUnchecked)
setBgColor ::
(MonadDOM m, ToJSString val) => HTMLMarqueeElement -> val -> m ()
setBgColor self val = liftDOM (self ^. jss "bgColor" (toJSVal val))
getBgColor ::
(MonadDOM m, FromJSString result) => HTMLMarqueeElement -> m result
getBgColor self
= liftDOM ((self ^. js "bgColor") >>= fromJSValUnchecked)
setDirection ::
(MonadDOM m, ToJSString val) => HTMLMarqueeElement -> val -> m ()
setDirection self val
= liftDOM (self ^. jss "direction" (toJSVal val))
getDirection ::
(MonadDOM m, FromJSString result) => HTMLMarqueeElement -> m result
getDirection self
= liftDOM ((self ^. js "direction") >>= fromJSValUnchecked)
setHeight ::
(MonadDOM m, ToJSString val) => HTMLMarqueeElement -> val -> m ()
setHeight self val = liftDOM (self ^. jss "height" (toJSVal val))
getHeight ::
(MonadDOM m, FromJSString result) => HTMLMarqueeElement -> m result
getHeight self
= liftDOM ((self ^. js "height") >>= fromJSValUnchecked)
setHspace :: (MonadDOM m) => HTMLMarqueeElement -> Word -> m ()
setHspace self val = liftDOM (self ^. jss "hspace" (toJSVal val))
getHspace :: (MonadDOM m) => HTMLMarqueeElement -> m Word
getHspace self
= liftDOM (round <$> ((self ^. js "hspace") >>= valToNumber))
setLoop :: (MonadDOM m) => HTMLMarqueeElement -> Int -> m ()
setLoop self val = liftDOM (self ^. jss "loop" (toJSVal val))
getLoop :: (MonadDOM m) => HTMLMarqueeElement -> m Int
getLoop self
= liftDOM (round <$> ((self ^. js "loop") >>= valToNumber))
setScrollAmount ::
(MonadDOM m) => HTMLMarqueeElement -> Word -> m ()
setScrollAmount self val
= liftDOM (self ^. jss "scrollAmount" (toJSVal val))
getScrollAmount :: (MonadDOM m) => HTMLMarqueeElement -> m Word
getScrollAmount self
= liftDOM (round <$> ((self ^. js "scrollAmount") >>= valToNumber))
setScrollDelay ::
(MonadDOM m) => HTMLMarqueeElement -> Word -> m ()
setScrollDelay self val
= liftDOM (self ^. jss "scrollDelay" (toJSVal val))
getScrollDelay :: (MonadDOM m) => HTMLMarqueeElement -> m Word
getScrollDelay self
= liftDOM (round <$> ((self ^. js "scrollDelay") >>= valToNumber))
setTrueSpeed :: (MonadDOM m) => HTMLMarqueeElement -> Bool -> m ()
setTrueSpeed self val
= liftDOM (self ^. jss "trueSpeed" (toJSVal val))
getTrueSpeed :: (MonadDOM m) => HTMLMarqueeElement -> m Bool
getTrueSpeed self
= liftDOM ((self ^. js "trueSpeed") >>= valToBool)
setVspace :: (MonadDOM m) => HTMLMarqueeElement -> Word -> m ()
setVspace self val = liftDOM (self ^. jss "vspace" (toJSVal val))
getVspace :: (MonadDOM m) => HTMLMarqueeElement -> m Word
getVspace self
= liftDOM (round <$> ((self ^. js "vspace") >>= valToNumber))
setWidth ::
(MonadDOM m, ToJSString val) => HTMLMarqueeElement -> val -> m ()
setWidth self val = liftDOM (self ^. jss "width" (toJSVal val))
getWidth ::
(MonadDOM m, FromJSString result) => HTMLMarqueeElement -> m result
getWidth self
= liftDOM ((self ^. js "width") >>= fromJSValUnchecked)