Safe Haskell | None |
---|---|
Language | Haskell2010 |
- js_initDeviceMotionEvent :: DeviceMotionEvent -> JSString -> Bool -> Bool -> Nullable Acceleration -> Nullable Acceleration -> Nullable RotationRate -> Double -> IO ()
- initDeviceMotionEvent :: (MonadIO m, ToJSString type', IsAcceleration acceleration, IsAcceleration accelerationIncludingGravity, IsRotationRate rotationRate) => DeviceMotionEvent -> type' -> Bool -> Bool -> Maybe acceleration -> Maybe accelerationIncludingGravity -> Maybe rotationRate -> Double -> m ()
- js_getAcceleration :: DeviceMotionEvent -> IO (Nullable Acceleration)
- getAcceleration :: MonadIO m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationUnchecked :: MonadIO m => DeviceMotionEvent -> m Acceleration
- js_getAccelerationIncludingGravity :: DeviceMotionEvent -> IO (Nullable Acceleration)
- getAccelerationIncludingGravity :: MonadIO m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationIncludingGravityUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravityUnchecked :: MonadIO m => DeviceMotionEvent -> m Acceleration
- js_getRotationRate :: DeviceMotionEvent -> IO (Nullable RotationRate)
- getRotationRate :: MonadIO m => DeviceMotionEvent -> m (Maybe RotationRate)
- getRotationRateUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m RotationRate
- getRotationRateUnchecked :: MonadIO m => DeviceMotionEvent -> m RotationRate
- js_getInterval :: DeviceMotionEvent -> IO Double
- getInterval :: MonadIO m => DeviceMotionEvent -> m Double
- newtype DeviceMotionEvent = DeviceMotionEvent {}
- gTypeDeviceMotionEvent :: GType
Documentation
js_initDeviceMotionEvent :: DeviceMotionEvent -> JSString -> Bool -> Bool -> Nullable Acceleration -> Nullable Acceleration -> Nullable RotationRate -> Double -> IO () Source #
initDeviceMotionEvent :: (MonadIO m, ToJSString type', IsAcceleration acceleration, IsAcceleration accelerationIncludingGravity, IsRotationRate rotationRate) => DeviceMotionEvent -> type' -> Bool -> Bool -> Maybe acceleration -> Maybe accelerationIncludingGravity -> Maybe rotationRate -> Double -> m () Source #
getAcceleration :: MonadIO m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationUnchecked :: MonadIO m => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravity :: MonadIO m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationIncludingGravityUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravityUnchecked :: MonadIO m => DeviceMotionEvent -> m Acceleration Source #
getRotationRate :: MonadIO m => DeviceMotionEvent -> m (Maybe RotationRate) Source #
getRotationRateUnsafe :: (MonadIO m, HasCallStack) => DeviceMotionEvent -> m RotationRate Source #
getRotationRateUnchecked :: MonadIO m => DeviceMotionEvent -> m RotationRate Source #
getInterval :: MonadIO m => DeviceMotionEvent -> m Double Source #
newtype DeviceMotionEvent Source #
Functions for this inteface are in GHCJS.DOM.DeviceMotionEvent. Base interface functions are in: