LCOV - code coverage report
Current view: top level - shumate - shumate-marker-layer.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 1 100.0 %
Date: 2024-05-11 21:41:31 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 6 10 60.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@pierlux.com>
       3                 :            :  * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com>
       4                 :            :  * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se>
       5                 :            :  *
       6                 :            :  * This library is free software; you can redistribute it and/or
       7                 :            :  * modify it under the terms of the GNU Lesser General Public
       8                 :            :  * License as published by the Free Software Foundation; either
       9                 :            :  * version 2.1 of the License, or (at your option) any later version.
      10                 :            :  *
      11                 :            :  * This library is distributed in the hope that it will be useful,
      12                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      14                 :            :  * Lesser General Public License for more details.
      15                 :            :  *
      16                 :            :  * You should have received a copy of the GNU Lesser General Public
      17                 :            :  * License along with this library; if not, write to the Free Software
      18                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      19                 :            :  */
      20                 :            : 
      21                 :            : #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION)
      22                 :            : #error "Only <shumate/shumate.h> can be included directly."
      23                 :            : #endif
      24                 :            : 
      25                 :            : #ifndef SHUMATE_MARKER_LAYER_H
      26                 :            : #define SHUMATE_MARKER_LAYER_H
      27                 :            : 
      28                 :            : #include <shumate/shumate-marker.h>
      29                 :            : #include <shumate/shumate-layer.h>
      30                 :            : #include <shumate/shumate-viewport.h>
      31                 :            : 
      32                 :            : #include <gtk/gtk.h>
      33                 :            : #include <glib-object.h>
      34                 :            : 
      35                 :            : G_BEGIN_DECLS
      36                 :            : 
      37                 :            : #define SHUMATE_TYPE_MARKER_LAYER shumate_marker_layer_get_type ()
      38   [ +  -  +  -  :        480 : G_DECLARE_FINAL_TYPE (ShumateMarkerLayer, shumate_marker_layer, SHUMATE, MARKER_LAYER, ShumateLayer)
          +  +  +  -  -  
                      + ]
      39                 :            : 
      40                 :            : ShumateMarkerLayer *shumate_marker_layer_new (ShumateViewport *viewport);
      41                 :            : ShumateMarkerLayer *shumate_marker_layer_new_full (ShumateViewport *viewport,
      42                 :            :                                                    GtkSelectionMode mode);
      43                 :            : 
      44                 :            : void shumate_marker_layer_add_marker (ShumateMarkerLayer *self,
      45                 :            :     ShumateMarker *marker);
      46                 :            : void shumate_marker_layer_remove_marker (ShumateMarkerLayer *self,
      47                 :            :     ShumateMarker *marker);
      48                 :            : void shumate_marker_layer_remove_all (ShumateMarkerLayer *self);
      49                 :            : GList *shumate_marker_layer_get_markers (ShumateMarkerLayer *self);
      50                 :            : GList *shumate_marker_layer_get_selected (ShumateMarkerLayer *self);
      51                 :            : 
      52                 :            : gboolean shumate_marker_layer_select_marker (ShumateMarkerLayer *self, ShumateMarker *marker);
      53                 :            : void shumate_marker_layer_unselect_marker (ShumateMarkerLayer *self, ShumateMarker *marker);
      54                 :            : void shumate_marker_layer_select_all_markers (ShumateMarkerLayer *self);
      55                 :            : void shumate_marker_layer_unselect_all_markers (ShumateMarkerLayer *self);
      56                 :            : 
      57                 :            : void shumate_marker_layer_set_selection_mode (ShumateMarkerLayer *self,
      58                 :            :                                               GtkSelectionMode    mode);
      59                 :            : GtkSelectionMode shumate_marker_layer_get_selection_mode (ShumateMarkerLayer *self);
      60                 :            : 
      61                 :            : G_END_DECLS
      62                 :            : 
      63                 :            : #endif
      64                 :            : 

Generated by: LCOV version 1.14