gi-webkit2-4.0.26: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Structs.GeolocationPosition

Description

WebKitGeolocationPosition is an opaque struct used to provide position updates to a GeolocationManager using geolocationManagerUpdatePosition.

Since: 2.26

Synopsis

Exported types

newtype GeolocationPosition Source #

Memory-managed wrapper type.

Constructors

GeolocationPosition (ManagedPtr GeolocationPosition) 

Instances

Instances details
Eq GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

GBoxed GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

ManagedPtrNewtype GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

TypedObject GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

Methods

glibType :: IO GType

IsGValue GeolocationPosition Source #

Convert GeolocationPosition to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

Methods

toGValue :: GeolocationPosition -> IO GValue

fromGValue :: GValue -> IO GeolocationPosition

HasParentTypes GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

type ParentTypes GeolocationPosition Source # 
Instance details

Defined in GI.WebKit2.Structs.GeolocationPosition

type ParentTypes GeolocationPosition = '[] :: [Type]

Methods

Overloaded methods

copy

geolocationPositionCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> m GeolocationPosition

Returns: a copy of position

Make a copy of the GeolocationPosition

Since: 2.26

free

geolocationPositionFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> m () 

Free the GeolocationPosition

Since: 2.26

new

geolocationPositionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

latitude: a valid latitude in degrees

-> Double

longitude: a valid longitude in degrees

-> Double

accuracy: accuracy of location in meters

-> m GeolocationPosition

Returns: a newly created GeolocationPosition

Create a new GeolocationPosition

Since: 2.26

setAltitude

geolocationPositionSetAltitude Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> Double

altitude: altitude in meters

-> m () 

Set the position altitude

Since: 2.26

setAltitudeAccuracy

geolocationPositionSetAltitudeAccuracy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> Double

altitudeAccuracy: accuracy of position altitude in meters

-> m () 

Set the accuracy of position altitude

Since: 2.26

setHeading

geolocationPositionSetHeading Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> Double

heading: heading in degrees

-> 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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> Double

speed: speed in meters per second

-> m () 

Set the position speed

Since: 2.26

setTimestamp

geolocationPositionSetTimestamp Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GeolocationPosition

position: a GeolocationPosition

-> Word64

timestamp: timestamp in seconds since the epoch, or 0 to use current time

-> m () 

Set the position timestamp. By default it's the time when the position was created.

Since: 2.26