Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
WebKitGeolocationPosition is an opaque struct used to provide position updates to a
GeolocationManager
using geolocationManagerUpdatePosition
.
Since: 2.26
Synopsis
- newtype GeolocationPosition = GeolocationPosition (ManagedPtr GeolocationPosition)
- geolocationPositionCopy :: (HasCallStack, MonadIO m) => GeolocationPosition -> m GeolocationPosition
- geolocationPositionFree :: (HasCallStack, MonadIO m) => GeolocationPosition -> m ()
- geolocationPositionNew :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m GeolocationPosition
- geolocationPositionSetAltitude :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m ()
- geolocationPositionSetAltitudeAccuracy :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m ()
- geolocationPositionSetHeading :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m ()
- geolocationPositionSetSpeed :: (HasCallStack, MonadIO m) => GeolocationPosition -> Double -> m ()
- geolocationPositionSetTimestamp :: (HasCallStack, MonadIO m) => GeolocationPosition -> Word64 -> m ()
Exported types
newtype GeolocationPosition Source #
Memory-managed wrapper type.
GeolocationPosition (ManagedPtr GeolocationPosition) |
Instances
Methods
Overloaded methods
copy
geolocationPositionCopy Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> m GeolocationPosition | Returns: a copy of |
Make a copy of the GeolocationPosition
Since: 2.26
free
geolocationPositionFree Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> m () |
Free the GeolocationPosition
Since: 2.26
new
geolocationPositionNew Source #
:: (HasCallStack, MonadIO m) | |
=> Double |
|
-> Double |
|
-> Double |
|
-> m GeolocationPosition | Returns: a newly created |
Create a new GeolocationPosition
Since: 2.26
setAltitude
geolocationPositionSetAltitude Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> Double |
|
-> m () |
Set the position
altitude
Since: 2.26
setAltitudeAccuracy
geolocationPositionSetAltitudeAccuracy Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> Double |
|
-> m () |
Set the accuracy of position
altitude
Since: 2.26
setHeading
geolocationPositionSetHeading Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> Double |
|
-> m () |
Set the position
heading, as a positive angle between the direction of movement and the North
direction, in clockwise direction.
Since: 2.26
setSpeed
geolocationPositionSetSpeed Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> Double |
|
-> m () |
Set the position
speed
Since: 2.26
setTimestamp
geolocationPositionSetTimestamp Source #
:: (HasCallStack, MonadIO m) | |
=> GeolocationPosition |
|
-> Word64 |
|
-> m () |
Set the position
timestamp. By default it's the time when the position
was created.
Since: 2.26