Top |
void | osm_gps_map_track_add_point () |
void | osm_gps_map_track_get_color () |
GSList * | osm_gps_map_track_get_points () |
double | osm_gps_map_track_get_length () |
OsmGpsMapPoint * | osm_gps_map_track_get_point () |
void | osm_gps_map_track_insert_point () |
int | osm_gps_map_track_n_points () |
void | osm_gps_map_track_remove_point () |
void | osm_gps_map_track_set_color () |
OsmGpsMapTrack * | osm_gps_map_track_new () |
void | point-added | Run First |
void | point-changed | Run First |
void | point-inserted | Run First |
void | point-removed | Run First |
OsmGpsMapTrack stores multiple OsmGpsMapPoint objects, i.e. a track, and
describes how such a track should be drawn on the map
(see osm_gps_map_track_add()
), including its colour, width, etc.
void osm_gps_map_track_add_point (OsmGpsMapTrack *track
,const OsmGpsMapPoint *point
);
Add a point to track
Since: 0.7.0
void osm_gps_map_track_get_color (OsmGpsMapTrack *track
,GdkRGBA *color
);
Get track color
Since: 0.7.0
GSList *
osm_gps_map_track_get_points (OsmGpsMapTrack *track
);
Get list of points in the track
Since: 0.7.0
double
osm_gps_map_track_get_length (OsmGpsMapTrack *track
);
Get track length in meters
Since: 1.1.0
OsmGpsMapPoint * osm_gps_map_track_get_point (OsmGpsMapTrack *track
,int pos
);
Get a OsmGpsMapPoint point at pos
of given track
Since: 1.1.0
void osm_gps_map_track_insert_point (OsmGpsMapTrack *track
,OsmGpsMapPoint *np
,int pos
);
Instert point np
at given postition pos
Since: 1.1.0
int
osm_gps_map_track_n_points (OsmGpsMapTrack *track
);
Get number of points in the track
Since: 1.1.0
void osm_gps_map_track_remove_point (OsmGpsMapTrack *track
,int pos
);
Remove track point at pos
position in point list
Since: 1.1.0
void osm_gps_map_track_set_color (OsmGpsMapTrack *track
,GdkRGBA *color
);
Set track color
Since: 1.1.0
OsmGpsMapTrack *
osm_gps_map_track_new (void
);
Create new track
Since: 0.7.0
“alpha”
property “alpha” gfloat
alpha transparency of the track.
Owner: OsmGpsMapTrack
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 0.6
“color”
property“color” GdkRGBA *
color of the track.
Owner: OsmGpsMapTrack
Flags: Read / Write
“editable”
property “editable” gboolean
should this track be editable.
Owner: OsmGpsMapTrack
Flags: Read / Write / Construct
Default value: FALSE
“line-width”
property “line-width” gfloat
width of the lines drawn for the track.
Owner: OsmGpsMapTrack
Flags: Read / Write / Construct
Allowed values: [0,100]
Default value: 4
“track”
property “track” gpointer
list of points for the track.
Owner: OsmGpsMapTrack
Flags: Read / Write / Construct Only
“point-added”
signalvoid user_function (OsmGpsMapTrack *self, OsmGpsMapPoint *arg1, gpointer user_data)
The “point-added” signal is emitted whenever a OsmGpsMapPoint is added to the OsmGpsMapTrack.
self |
||
arg1 |
The added OsmGpsMapPoint |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“point-changed”
signalvoid user_function (OsmGpsMapTrack *osmgpsmaptrack, gint arg1, gpointer user_data)
Flags: Run First
“point-inserted”
signalvoid user_function (OsmGpsMapTrack *osmgpsmaptrack, gint arg1, gpointer user_data)
Flags: Run First
“point-removed”
signalvoid user_function (OsmGpsMapTrack *osmgpsmaptrack, gint arg1, gpointer user_data)
Flags: Run First