| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.WebKit2.Structs.GeolocationPosition
Description
An opaque struct to provide position updates to a GeolocationManager.
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.
Constructors
| GeolocationPosition (ManagedPtr GeolocationPosition) |
Instances
Methods
Click to display all available methods, including inherited ones
copy
geolocationPositionCopy Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> m GeolocationPosition | Returns: a copy of |
Make a copy of the GeolocationPosition.
Since: 2.26
free
geolocationPositionFree Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> m () |
Free the GeolocationPosition
Since: 2.26
new
geolocationPositionNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Double |
|
| -> Double |
|
| -> Double |
|
| -> m GeolocationPosition | Returns: a newly created |
Create a new GeolocationPosition.
Since: 2.26
setAltitude
geolocationPositionSetAltitude Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> Double |
|
| -> m () |
Set the position altitude.
Since: 2.26
setAltitudeAccuracy
geolocationPositionSetAltitudeAccuracy Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> Double |
|
| -> m () |
Set the accuracy of position altitude.
Since: 2.26
setHeading
geolocationPositionSetHeading Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> Double |
|
| -> m () |
Set the position heading.
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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> Double |
|
| -> m () |
Set the position speed.
Since: 2.26
setTimestamp
geolocationPositionSetTimestamp Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GeolocationPosition |
|
| -> Word64 |
|
| -> m () |
Set the position timestamp.
By default it's the time when the position was created.
Since: 2.26