guint
champlain_selection_layer_count_selected_markers (ChamplainSelectionLayer *layer)
{
+ g_return_val_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer), 0);
+
return g_list_length (layer->priv->selection);
}
champlain_selection_layer_select (ChamplainSelectionLayer *layer,
ChamplainBaseMarker *marker)
{
+ g_return_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer));
+ g_return_if_fail (CHAMPLAIN_IS_BASE_MARKER (marker));
+
api_select (layer, marker);
}
void
champlain_selection_layer_unselect_all (ChamplainSelectionLayer *layer)
{
+ g_return_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer));
+
GList *selection = layer->priv->selection;
DEBUG ("Deselect all");
void
champlain_selection_layer_select_all (ChamplainSelectionLayer *layer)
{
+ g_return_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer));
+
gint n_children = 0;
gint i = 0;
champlain_selection_layer_unselect (ChamplainSelectionLayer *layer,
ChamplainBaseMarker *marker)
{
+ g_return_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer));
+ g_return_if_fail (CHAMPLAIN_IS_BASE_MARKER (marker));
+
GList *selection;
DEBUG ("Deselect %p", marker);
champlain_selection_layer_marker_is_selected (ChamplainSelectionLayer *layer,
ChamplainBaseMarker *marker)
{
+ g_return_val_if_fail (CHAMPLAIN_IS_SELECTION_LAYER (layer), FALSE);
+ g_return_val_if_fail (CHAMPLAIN_IS_BASE_MARKER (marker), FALSE);
+
GList *selection;
selection = g_list_find (layer->priv->selection, marker);