Top |
ChamplainMarkerLayerChamplainMarkerLayer — A container for ChamplainMarker |
GObject ╰── GInitiallyUnowned ╰── ClutterActor ╰── ChamplainLayer ╰── ChamplainMarkerLayer
ChamplainMarkerLayer implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and ChamplainExportable.
A ChamplainMarkerLayer displays markers on the map. It is responsible for positioning markers correctly, marker selections and group marker operations.
ChamplainMarkerLayer *
champlain_marker_layer_new (void
);
Creates a new instance of ChamplainMarkerLayer.
Since: 0.10
ChamplainMarkerLayer *
champlain_marker_layer_new_full (ChamplainSelectionMode mode
);
Creates a new instance of ChamplainMarkerLayer with the specified selection mode.
Since: 0.10
void champlain_marker_layer_add_marker (ChamplainMarkerLayer *layer
,ChamplainMarker *marker
);
Adds the marker to the layer.
Since: 0.10
void champlain_marker_layer_remove_marker (ChamplainMarkerLayer *layer
,ChamplainMarker *marker
);
Removes the marker from the layer.
Since: 0.10
void
champlain_marker_layer_remove_all (ChamplainMarkerLayer *layer
);
Removes all markers from the layer.
Since: 0.10
GList *
champlain_marker_layer_get_markers (ChamplainMarkerLayer *layer
);
Gets a copy of the list of all markers inserted into the layer. You should free the list but not its contents.
Since: 0.10
GList *
champlain_marker_layer_get_selected (ChamplainMarkerLayer *layer
);
Gets a list of selected markers in the layer.
Since: 0.10
void
champlain_marker_layer_animate_in_all_markers
(ChamplainMarkerLayer *layer
);
Fade in all markers in the layer with an animation
Since: 0.10
void
champlain_marker_layer_animate_out_all_markers
(ChamplainMarkerLayer *layer
);
Fade out all markers in the layer with an animation
Since: 0.10
void
champlain_marker_layer_show_all_markers
(ChamplainMarkerLayer *layer
);
Shows all markers in the layer
Since: 0.10
void
champlain_marker_layer_hide_all_markers
(ChamplainMarkerLayer *layer
);
Hides all the markers in the layer
Since: 0.10
void
champlain_marker_layer_set_all_markers_draggable
(ChamplainMarkerLayer *layer
);
Sets all markers draggable in the layer
Since: 0.10
void
champlain_marker_layer_set_all_markers_undraggable
(ChamplainMarkerLayer *layer
);
Sets all markers undraggable in the layer
Since: 0.10
void
champlain_marker_layer_select_all_markers
(ChamplainMarkerLayer *layer
);
Selects all markers in the layer.
Since: 0.10
void
champlain_marker_layer_unselect_all_markers
(ChamplainMarkerLayer *layer
);
Unselects all markers in the layer.
Since: 0.10
void champlain_marker_layer_set_selection_mode (ChamplainMarkerLayer *layer
,ChamplainSelectionMode mode
);
Sets the selection mode of the layer.
NOTE: changing selection mode to CHAMPLAIN_SELECTION_NONE or CHAMPLAIN_SELECTION_SINGLE will clear all previously selected markers.
Since: 0.10
ChamplainSelectionMode
champlain_marker_layer_get_selection_mode
(ChamplainMarkerLayer *layer
);
Gets the selection mode of the layer.
Since: 0.10
struct ChamplainMarkerLayer;
The ChamplainMarkerLayer structure contains only private data and should be accessed using the provided API
Since: 0.10
“selection-mode”
property“selection-mode” ChamplainSelectionMode
Determines the type of selection that will be performed.
Owner: ChamplainMarkerLayer
Flags: Read / Write
Default value: CHAMPLAIN_SELECTION_NONE
Since: 0.10