{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.Coordinates (js_getLatitude, getLatitude, js_getLongitude, getLongitude, js_getAltitude, getAltitude, js_getAccuracy, getAccuracy, js_getAltitudeAccuracy, getAltitudeAccuracy, js_getHeading, getHeading, js_getSpeed, getSpeed, Coordinates, castToCoordinates, gTypeCoordinates) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord) import Data.Typeable (Typeable) import GHCJS.Types (JSRef(..), JSString) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSRef(..), FromJSRef(..)) import GHCJS.Marshal.Pure (PToJSRef(..), PFromJSRef(..)) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.Enums foreign import javascript unsafe "$1[\"latitude\"]" js_getLatitude :: Coordinates -> IO Double -- | getLatitude :: (MonadIO m) => Coordinates -> m Double getLatitude self = liftIO (js_getLatitude (self)) foreign import javascript unsafe "$1[\"longitude\"]" js_getLongitude :: Coordinates -> IO Double -- | getLongitude :: (MonadIO m) => Coordinates -> m Double getLongitude self = liftIO (js_getLongitude (self)) foreign import javascript unsafe "$1[\"altitude\"]" js_getAltitude :: Coordinates -> IO JSRef -- | getAltitude :: (MonadIO m) => Coordinates -> m (Maybe Double) getAltitude self = liftIO ((js_getAltitude (self)) >>= fromJSRefUnchecked) foreign import javascript unsafe "$1[\"accuracy\"]" js_getAccuracy :: Coordinates -> IO Double -- | getAccuracy :: (MonadIO m) => Coordinates -> m Double getAccuracy self = liftIO (js_getAccuracy (self)) foreign import javascript unsafe "$1[\"altitudeAccuracy\"]" js_getAltitudeAccuracy :: Coordinates -> IO JSRef -- | getAltitudeAccuracy :: (MonadIO m) => Coordinates -> m (Maybe Double) getAltitudeAccuracy self = liftIO ((js_getAltitudeAccuracy (self)) >>= fromJSRefUnchecked) foreign import javascript unsafe "$1[\"heading\"]" js_getHeading :: Coordinates -> IO JSRef -- | getHeading :: (MonadIO m) => Coordinates -> m (Maybe Double) getHeading self = liftIO ((js_getHeading (self)) >>= fromJSRefUnchecked) foreign import javascript unsafe "$1[\"speed\"]" js_getSpeed :: Coordinates -> IO JSRef -- | getSpeed :: (MonadIO m) => Coordinates -> m (Maybe Double) getSpeed self = liftIO ((js_getSpeed (self)) >>= fromJSRefUnchecked)