LCOV - code coverage report
Current view: top level - shumate - shumate-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: 4 8 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com>
       3                 :            :  * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se>
       4                 :            :  *
       5                 :            :  * This library is free software; you can redistribute it and/or
       6                 :            :  * modify it under the terms of the GNU Lesser General Public
       7                 :            :  * License as published by the Free Software Foundation; either
       8                 :            :  * version 2.1 of the License, or (at your option) any later version.
       9                 :            :  *
      10                 :            :  * This library is distributed in the hope that it will be useful,
      11                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      12                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      13                 :            :  * Lesser General Public License for more details.
      14                 :            :  *
      15                 :            :  * You should have received a copy of the GNU Lesser General Public
      16                 :            :  * License along with this library; if not, write to the Free Software
      17                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      18                 :            :  */
      19                 :            : 
      20                 :            : #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION)
      21                 :            : #error "Only <shumate/shumate.h> can be included directly."
      22                 :            : #endif
      23                 :            : 
      24                 :            : #ifndef __SHUMATE_LAYER_H__
      25                 :            : #define __SHUMATE_LAYER_H__
      26                 :            : 
      27                 :            : #include <shumate/shumate-viewport.h>
      28                 :            : #include <gtk/gtk.h>
      29                 :            : 
      30                 :            : G_BEGIN_DECLS
      31                 :            : 
      32                 :            : #define SHUMATE_TYPE_LAYER shumate_layer_get_type ()
      33   [ +  -  +  -  :        266 : G_DECLARE_DERIVABLE_TYPE (ShumateLayer, shumate_layer, SHUMATE, LAYER, GtkWidget)
             +  -  +  - ]
      34                 :            : 
      35                 :            : struct _ShumateLayerClass
      36                 :            : {
      37                 :            :   GtkWidgetClass parent_class;
      38                 :            : 
      39                 :            :   /**
      40                 :            :    * ShumateLayerClass::get_debug_text:
      41                 :            :    * @self: a [class@Layer]
      42                 :            :    *
      43                 :            :    * Returns a string to show in the debug overlay, which can be
      44                 :            :    * enabled in the GTK inspector.
      45                 :            :    *
      46                 :            :    * Returns: (transfer full) (nullable): a string with debug text
      47                 :            :    */
      48                 :            :   char *(*get_debug_text) (ShumateLayer *self);
      49                 :            : 
      50                 :            :   /*< private >*/
      51                 :            :   gpointer padding[15];
      52                 :            : };
      53                 :            : 
      54                 :            : ShumateViewport *shumate_layer_get_viewport (ShumateLayer *self);
      55                 :            : 
      56                 :            : G_END_DECLS
      57                 :            : 
      58                 :            : #endif /* __SHUMATE_LAYER_H__ */

Generated by: LCOV version 1.14