module JSDOM.Generated.SVGCursorElement
(getX, getXUnsafe, getXUnchecked, getY, getYUnsafe, getYUnchecked,
SVGCursorElement(..), gTypeSVGCursorElement)
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 Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array)
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
getX ::
(MonadDOM m) => SVGCursorElement -> m (Maybe SVGAnimatedLength)
getX self = liftDOM ((self ^. js "x") >>= fromJSVal)
getXUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGCursorElement -> m SVGAnimatedLength
getXUnsafe self
= liftDOM
(((self ^. js "x") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getXUnchecked ::
(MonadDOM m) => SVGCursorElement -> m SVGAnimatedLength
getXUnchecked self
= liftDOM ((self ^. js "x") >>= fromJSValUnchecked)
getY ::
(MonadDOM m) => SVGCursorElement -> m (Maybe SVGAnimatedLength)
getY self = liftDOM ((self ^. js "y") >>= fromJSVal)
getYUnsafe ::
(MonadDOM m, HasCallStack) =>
SVGCursorElement -> m SVGAnimatedLength
getYUnsafe self
= liftDOM
(((self ^. js "y") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getYUnchecked ::
(MonadDOM m) => SVGCursorElement -> m SVGAnimatedLength
getYUnchecked self
= liftDOM ((self ^. js "y") >>= fromJSValUnchecked)