Class
ShumateViewport
Description [src]
final class Shumate.Viewport : GObject.Object
implements Shumate.Location {
/* No available fields */
}
The object holding the coordinate, zoom-level, and rotation state of the current view.
As the object implements ShumateLocation
, the latitude and longitude are
accessible via the interface methods.
Instance methods
shumate_viewport_location_to_widget_coords
Gets the position on widget
that correspond to the given latitude and longitude.
shumate_viewport_widget_coords_to_location
Gets the latitude and longitude corresponding to a position on widget
.
Methods inherited from ShumateLocation (4)
shumate_location_distance
Calculates the distance in meters between two locations.
since: 1.2
shumate_location_get_latitude
Gets the latitude coordinate in degrees.
shumate_location_get_longitude
Gets the longitude coordinate in degrees.
shumate_location_set_location
Sets the coordinates of the location.
Properties
Shumate.Viewport:rotation
The rotation of the map view, in radians clockwise from up being due north.
Properties inherited from ShumateLocation (2)
ShumateLocation:latitude
The latitude coordonate in degrees.
ShumateLocation:longitude
The longitude coordonate in degrees.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.