module JSDOM.Generated.SVGPathSegArcAbs
(setX, getX, setY, getY, setR1, getR1, setR2, getR2, setAngle,
getAngle, setLargeArcFlag, getLargeArcFlag, setSweepFlag,
getSweepFlag, SVGPathSegArcAbs(..), gTypeSVGPathSegArcAbs)
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
setX :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
setX self val = liftDOM (self ^. jss "x" (toJSVal val))
getX :: (MonadDOM m) => SVGPathSegArcAbs -> m Float
getX self
= liftDOM (realToFrac <$> ((self ^. js "x") >>= valToNumber))
setY :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
setY self val = liftDOM (self ^. jss "y" (toJSVal val))
getY :: (MonadDOM m) => SVGPathSegArcAbs -> m Float
getY self
= liftDOM (realToFrac <$> ((self ^. js "y") >>= valToNumber))
setR1 :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
setR1 self val = liftDOM (self ^. jss "r1" (toJSVal val))
getR1 :: (MonadDOM m) => SVGPathSegArcAbs -> m Float
getR1 self
= liftDOM (realToFrac <$> ((self ^. js "r1") >>= valToNumber))
setR2 :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
setR2 self val = liftDOM (self ^. jss "r2" (toJSVal val))
getR2 :: (MonadDOM m) => SVGPathSegArcAbs -> m Float
getR2 self
= liftDOM (realToFrac <$> ((self ^. js "r2") >>= valToNumber))
setAngle :: (MonadDOM m) => SVGPathSegArcAbs -> Float -> m ()
setAngle self val = liftDOM (self ^. jss "angle" (toJSVal val))
getAngle :: (MonadDOM m) => SVGPathSegArcAbs -> m Float
getAngle self
= liftDOM (realToFrac <$> ((self ^. js "angle") >>= valToNumber))
setLargeArcFlag :: (MonadDOM m) => SVGPathSegArcAbs -> Bool -> m ()
setLargeArcFlag self val
= liftDOM (self ^. jss "largeArcFlag" (toJSVal val))
getLargeArcFlag :: (MonadDOM m) => SVGPathSegArcAbs -> m Bool
getLargeArcFlag self
= liftDOM ((self ^. js "largeArcFlag") >>= valToBool)
setSweepFlag :: (MonadDOM m) => SVGPathSegArcAbs -> Bool -> m ()
setSweepFlag self val
= liftDOM (self ^. jss "sweepFlag" (toJSVal val))
getSweepFlag :: (MonadDOM m) => SVGPathSegArcAbs -> m Bool
getSweepFlag self
= liftDOM ((self ^. js "sweepFlag") >>= valToBool)