GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: 40.0% 4 / 0 / 10

shumate/shumate-layer.h
Line Branch Exec Source
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
4/10
None:
✓ Branch 83 → 84 taken 1 time.
✗ Branch 83 → 85 not taken.
SHUMATE_IS_LAYER:
✓ Branch 3 → 4 taken 132 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 132 times.
✗ Branch 4 → 6 not taken.
✓ Branch 5 → 6 taken 132 times.
✗ Branch 5 → 7 not taken.
✗ Branch 39 → 40 not taken.
✗ Branch 39 → 62 not taken.
133 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__ */
59