Safe Haskell | None |
---|---|
Language | Haskell2010 |
- initDeviceMotionEvent :: (MonadDOM m, ToJSString type', IsAcceleration acceleration, IsAcceleration accelerationIncludingGravity, IsRotationRate rotationRate) => DeviceMotionEvent -> type' -> Bool -> Bool -> Maybe acceleration -> Maybe accelerationIncludingGravity -> Maybe rotationRate -> Double -> m ()
- getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate)
- getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate
- getInterval :: MonadDOM m => DeviceMotionEvent -> m Double
- data DeviceMotionEvent
- castToDeviceMotionEvent :: IsGObject obj => obj -> JSM DeviceMotionEvent
- gTypeDeviceMotionEvent :: JSM GType
Documentation
initDeviceMotionEvent :: (MonadDOM m, ToJSString type', IsAcceleration acceleration, IsAcceleration accelerationIncludingGravity, IsRotationRate rotationRate) => DeviceMotionEvent -> type' -> Bool -> Bool -> Maybe acceleration -> Maybe accelerationIncludingGravity -> Maybe rotationRate -> Double -> m () Source #
getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate) Source #
getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate Source #
getInterval :: MonadDOM m => DeviceMotionEvent -> m Double Source #
data DeviceMotionEvent Source #
Functions for this inteface are in JSDOM.DeviceMotionEvent. Base interface functions are in:
castToDeviceMotionEvent :: IsGObject obj => obj -> JSM DeviceMotionEvent Source #