GCC Code Coverage Report


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

shumate/shumate-marker.h
Line Branch Exec Source
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_H
26 #define SHUMATE_MARKER_H
27
28 #include <gdk/gdk.h>
29 #include <glib-object.h>
30 #include <gtk/gtk.h>
31
32 #include <shumate/shumate-location.h>
33 #include <shumate/shumate-version.h>
34
35 G_BEGIN_DECLS
36
37 #define SHUMATE_TYPE_MARKER shumate_marker_get_type ()
38
4/6
✓ Branch 3 → 4 taken 355 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 355 times.
✗ Branch 4 → 6 not taken.
✓ Branch 5 → 6 taken 353 times.
✓ Branch 5 → 7 taken 2 times.
355 G_DECLARE_DERIVABLE_TYPE (ShumateMarker, shumate_marker, SHUMATE, MARKER, GtkWidget)
39
40 struct _ShumateMarkerClass
41 {
42 GtkWidgetClass parent_class;
43
44 /*< private >*/
45 gpointer padding[16];
46 };
47
48 ShumateMarker *shumate_marker_new (void);
49
50 void shumate_marker_set_selectable (ShumateMarker *marker,
51 gboolean value);
52 gboolean shumate_marker_get_selectable (ShumateMarker *marker);
53
54 void shumate_marker_set_draggable (ShumateMarker *marker,
55 gboolean value);
56 gboolean shumate_marker_get_draggable (ShumateMarker *marker);
57
58 gboolean shumate_marker_is_selected (ShumateMarker *marker);
59
60 void shumate_marker_animate_in (ShumateMarker *marker);
61 void shumate_marker_animate_in_with_delay (ShumateMarker *marker,
62 guint delay);
63 void shumate_marker_animate_out (ShumateMarker *marker);
64 void shumate_marker_animate_out_with_delay (ShumateMarker *marker,
65 guint delay);
66
67 GtkWidget *shumate_marker_get_child (ShumateMarker *marker);
68 void shumate_marker_set_child (ShumateMarker *marker,
69 GtkWidget *child);
70 SHUMATE_AVAILABLE_IN_1_5
71 void shumate_marker_set_hotspot (ShumateMarker *marker,
72 gdouble x_hotspot,
73 gdouble y_hotspot);
74 SHUMATE_AVAILABLE_IN_1_5
75 void shumate_marker_get_hotspot (ShumateMarker *marker,
76 gdouble *x_hotspot,
77 gdouble *y_hotspot);
78 G_END_DECLS
79
80 #endif
81