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 |
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.
Instances
Eq GeolocationPosition Source # | |
Defined in GI.WebKit2.Structs.GeolocationPosition (==) :: GeolocationPosition -> GeolocationPosition -> Bool # (/=) :: GeolocationPosition -> GeolocationPosition -> Bool # | |
GBoxed GeolocationPosition Source # | |
Defined in GI.WebKit2.Structs.GeolocationPosition | |
ManagedPtrNewtype GeolocationPosition Source # | |
TypedObject GeolocationPosition Source # | |
Defined in GI.WebKit2.Structs.GeolocationPosition | |
HasParentTypes GeolocationPosition Source # | |
Defined in GI.WebKit2.Structs.GeolocationPosition | |
IsGValue (Maybe GeolocationPosition) Source # | Convert |
Defined in GI.WebKit2.Structs.GeolocationPosition gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe GeolocationPosition -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe GeolocationPosition) # | |
type ParentTypes GeolocationPosition Source # | |
Defined in GI.WebKit2.Structs.GeolocationPosition |
Methods
Click to display all available methods, including inherited ones
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