GCC Code Coverage Report


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

shumate/shumate-license.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_LICENSE_H
25 #define SHUMATE_LICENSE_H
26
27 #include <shumate/shumate-map-source.h>
28
29 #include <glib-object.h>
30 #include <gtk/gtk.h>
31
32 G_BEGIN_DECLS
33
34 #define SHUMATE_TYPE_LICENSE shumate_license_get_type ()
35 ✗ G_DECLARE_FINAL_TYPE (ShumateLicense, shumate_license, SHUMATE, LICENSE, GtkWidget)
36
37 ShumateLicense *shumate_license_new (void);
38
39 void shumate_license_set_extra_text (ShumateLicense *license,
40 const char *text);
41 const char *shumate_license_get_extra_text (ShumateLicense *license);
42
43 void shumate_license_set_xalign (ShumateLicense *license,
44 float xalign);
45 float shumate_license_get_xalign (ShumateLicense *license);
46
47 void shumate_license_append_map_source (ShumateLicense *license,
48 ShumateMapSource *map_source);
49 void shumate_license_prepend_map_source (ShumateLicense *license,
50 ShumateMapSource *map_source);
51 void shumate_license_remove_map_source (ShumateLicense *license,
52 ShumateMapSource *map_source);
53
54 G_END_DECLS
55
56 #endif
57