![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties |
ChamplainLocation; struct ChamplainLocationIface; void champlain_location_set_location (ChamplainLocation *location
,gdouble latitude
,gdouble longitude
); gdouble champlain_location_get_latitude (ChamplainLocation *location
); gdouble champlain_location_get_longitude (ChamplainLocation *location
);
ChamplainLocation is implemented by ChamplainCoordinate, ChamplainCustomMarker, ChamplainLabel, ChamplainMarker and ChamplainPoint.
By implementing ChamplainLocation the object declares that it has latitude and longitude and can be used to specify location on the map.
typedef struct _ChamplainLocation ChamplainLocation;
An interface common to objects having latitude and longitude.
struct ChamplainLocationIface { gdouble (*get_latitude)(ChamplainLocation *location); gdouble (*get_longitude)(ChamplainLocation *location); void (*set_location)(ChamplainLocation *location, gdouble latitude, gdouble longitude); };
An interface common to objects having latitude and longitude.
void champlain_location_set_location (ChamplainLocation *location
,gdouble latitude
,gdouble longitude
);
Sets the coordinates of the location
|
a ChamplainLocation |
|
the latitude |
|
the longitude |
Since 0.10
gdouble champlain_location_get_latitude (ChamplainLocation *location
);
Gets the latitude coordinate.
|
a ChamplainLocation |
Returns : |
the latitude coordinate. |
Since 0.10
gdouble champlain_location_get_longitude (ChamplainLocation *location
);
Gets the longitude coordinate.
|
a ChamplainLocation |
Returns : |
the longitude coordinate. |
Since 0.10