shumate-simple-map.h 2.62 KB
Newer Older
James Westman's avatar
James Westman committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2021 James Westman <james@jwestman.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
 */

#pragma once

#include <gtk/gtk.h>
James Westman's avatar
James Westman committed
21
#include <shumate/shumate-map.h>
James Westman's avatar
James Westman committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <shumate/shumate-map-source.h>
#include <shumate/shumate-layer.h>
#include <shumate/shumate-compass.h>
#include <shumate/shumate-license.h>
#include <shumate/shumate-scale.h>

G_BEGIN_DECLS

#define SHUMATE_TYPE_SIMPLE_MAP (shumate_simple_map_get_type())

G_DECLARE_FINAL_TYPE (ShumateSimpleMap, shumate_simple_map, SHUMATE, SIMPLE_MAP, GtkWidget)

ShumateSimpleMap *shumate_simple_map_new (void);

ShumateViewport  *shumate_simple_map_get_viewport (ShumateSimpleMap *self);

ShumateMapSource *shumate_simple_map_get_map_source (ShumateSimpleMap *self);
void              shumate_simple_map_set_map_source (ShumateSimpleMap *self,
                                                     ShumateMapSource *map_source);

void              shumate_simple_map_add_overlay_layer (ShumateSimpleMap *self,
                                                        ShumateLayer     *layer);
void              shumate_simple_map_insert_overlay_layer (ShumateSimpleMap *self,
                                                           ShumateLayer     *layer,
                                                           guint             idx);
void              shumate_simple_map_remove_overlay_layer (ShumateSimpleMap *self,
                                                           ShumateLayer     *layer);

ShumateCompass   *shumate_simple_map_get_compass (ShumateSimpleMap *self);

ShumateLicense   *shumate_simple_map_get_license (ShumateSimpleMap *self);

ShumateScale     *shumate_simple_map_get_scale (ShumateSimpleMap *self);

gboolean          shumate_simple_map_get_show_zoom_buttons (ShumateSimpleMap *self);
void              shumate_simple_map_set_show_zoom_buttons (ShumateSimpleMap *self,
                                                            gboolean          show_zoom_buttons);

James Westman's avatar
James Westman committed
60
61
ShumateMap *shumate_simple_map_get_map (ShumateSimpleMap *self);

James Westman's avatar
James Westman committed
62
G_END_DECLS