GeolocationPosition

WebKitGeolocationPosition is an opaque struct used to provide position updates to a #WebKitGeolocationManager using webkit_geolocation_manager_update_position().

Constructors

this
this(WebKitGeolocationPosition* webKitGeolocationPosition, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(double latitude, double longitude, double accuracy)

Create a new #WebKitGeolocationPosition

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
GeolocationPosition copy()

Make a copy of the #WebKitGeolocationPosition

free
void free()

Free the #WebKitGeolocationPosition

getGeolocationPositionStruct
WebKitGeolocationPosition* getGeolocationPositionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setAltitude
void setAltitude(double altitude)

Set the @position altitude

setAltitudeAccuracy
void setAltitudeAccuracy(double altitudeAccuracy)

Set the accuracy of @position altitude

setHeading
void setHeading(double heading)

Set the @position heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.

setSpeed
void setSpeed(double speed)

Set the @position speed

setTimestamp
void setTimestamp(ulong timestamp)

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

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
webKitGeolocationPosition
WebKitGeolocationPosition* webKitGeolocationPosition;

the main Gtk struct

Meta

Since

2.26