Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- initDeviceMotionEvent :: (MonadDOM m, ToJSString type') => DeviceMotionEvent -> Maybe type' -> Bool -> Bool -> Maybe Acceleration -> Maybe Acceleration -> Maybe RotationRate -> Maybe Double -> m ()
- getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationIncludingGravityUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate)
- getRotationRateUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m RotationRate
- getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate
- getInterval :: MonadDOM m => DeviceMotionEvent -> m (Maybe Double)
- getIntervalUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Double
- getIntervalUnchecked :: MonadDOM m => DeviceMotionEvent -> m Double
- newtype DeviceMotionEvent = DeviceMotionEvent {}
- gTypeDeviceMotionEvent :: JSM GType
Documentation
initDeviceMotionEvent :: (MonadDOM m, ToJSString type') => DeviceMotionEvent -> Maybe type' -> Bool -> Bool -> Maybe Acceleration -> Maybe Acceleration -> Maybe RotationRate -> Maybe Double -> m () Source #
getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationIncludingGravityUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate) Source #
getRotationRateUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m RotationRate Source #
getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate Source #
getInterval :: MonadDOM m => DeviceMotionEvent -> m (Maybe Double) Source #
getIntervalUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Double Source #
getIntervalUnchecked :: MonadDOM m => DeviceMotionEvent -> m Double Source #
newtype DeviceMotionEvent Source #
Functions for this inteface are in JSDOM.DeviceMotionEvent. Base interface functions are in:
Instances
PToJSVal DeviceMotionEvent Source # | |
Defined in JSDOM.Types pToJSVal :: DeviceMotionEvent -> JSVal # | |
PFromJSVal DeviceMotionEvent Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> DeviceMotionEvent # | |
ToJSVal DeviceMotionEvent Source # | |
Defined in JSDOM.Types toJSVal :: DeviceMotionEvent -> JSM JSVal # toJSValListOf :: [DeviceMotionEvent] -> JSM JSVal # | |
FromJSVal DeviceMotionEvent Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe DeviceMotionEvent) # fromJSValUnchecked :: JSVal -> JSM DeviceMotionEvent # fromJSValListOf :: JSVal -> JSM (Maybe [DeviceMotionEvent]) # fromJSValUncheckedListOf :: JSVal -> JSM [DeviceMotionEvent] # | |
MakeObject DeviceMotionEvent Source # | |
Defined in JSDOM.Types makeObject :: DeviceMotionEvent -> JSM Object # | |
IsEvent DeviceMotionEvent Source # | |
Defined in JSDOM.Types | |
IsGObject DeviceMotionEvent Source # | |
Defined in JSDOM.Types typeGType :: DeviceMotionEvent -> JSM GType |