{-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE JavaScriptFFI #-} -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.SVGCircleElement (js_getCx, getCx, getCxUnsafe, getCxUnchecked, js_getCy, getCy, getCyUnsafe, getCyUnchecked, js_getR, getR, getRUnsafe, getRUnchecked, SVGCircleElement(..), gTypeSVGCircleElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord) import qualified Prelude (error) import Data.Typeable (Typeable) import GHCJS.Types (JSVal(..), JSString) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSVal(..), FromJSVal(..)) import GHCJS.Marshal.Pure (PToJSVal(..), PFromJSVal(..)) import Control.Monad (void) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import Data.Maybe (fromJust) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.JSFFI.Generated.Enums foreign import javascript unsafe "$1[\"cx\"]" js_getCx :: SVGCircleElement -> IO (Nullable SVGAnimatedLength) -- | getCx :: (MonadIO m) => SVGCircleElement -> m (Maybe SVGAnimatedLength) getCx self = liftIO (nullableToMaybe <$> (js_getCx (self))) -- | getCxUnsafe :: (MonadIO m, HasCallStack) => SVGCircleElement -> m SVGAnimatedLength getCxUnsafe self = liftIO ((nullableToMaybe <$> (js_getCx (self))) >>= maybe (Prelude.error "Nothing to return") return) -- | getCxUnchecked :: (MonadIO m) => SVGCircleElement -> m SVGAnimatedLength getCxUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getCx (self))) foreign import javascript unsafe "$1[\"cy\"]" js_getCy :: SVGCircleElement -> IO (Nullable SVGAnimatedLength) -- | getCy :: (MonadIO m) => SVGCircleElement -> m (Maybe SVGAnimatedLength) getCy self = liftIO (nullableToMaybe <$> (js_getCy (self))) -- | getCyUnsafe :: (MonadIO m, HasCallStack) => SVGCircleElement -> m SVGAnimatedLength getCyUnsafe self = liftIO ((nullableToMaybe <$> (js_getCy (self))) >>= maybe (Prelude.error "Nothing to return") return) -- | getCyUnchecked :: (MonadIO m) => SVGCircleElement -> m SVGAnimatedLength getCyUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getCy (self))) foreign import javascript unsafe "$1[\"r\"]" js_getR :: SVGCircleElement -> IO (Nullable SVGAnimatedLength) -- | getR :: (MonadIO m) => SVGCircleElement -> m (Maybe SVGAnimatedLength) getR self = liftIO (nullableToMaybe <$> (js_getR (self))) -- | getRUnsafe :: (MonadIO m, HasCallStack) => SVGCircleElement -> m SVGAnimatedLength getRUnsafe self = liftIO ((nullableToMaybe <$> (js_getR (self))) >>= maybe (Prelude.error "Nothing to return") return) -- | getRUnchecked :: (MonadIO m) => SVGCircleElement -> m SVGAnimatedLength getRUnchecked self = liftIO (fromJust . nullableToMaybe <$> (js_getR (self)))