Branch data Line data Source code
1 : : /* 2 : : * Copyright (C) 2021 James Westman <james@jwestman.net> 3 : : * 4 : : * This library is free software; you can redistribute it and/or 5 : : * modify it under the terms of the GNU Lesser General Public 6 : : * License as published by the Free Software Foundation; either 7 : : * version 2.1 of the License, or (at your option) any later version. 8 : : * 9 : : * This library is distributed in the hope that it will be useful, 10 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 : : * Lesser General Public License for more details. 13 : : * 14 : : * You should have received a copy of the GNU Lesser General Public 15 : : * License along with this library; if not, see <https://www.gnu.org/licenses/>. 16 : : */ 17 : : 18 : : #pragma once 19 : : 20 : : #include <gtk/gtk.h> 21 : : #include <shumate/shumate-map.h> 22 : : #include <shumate/shumate-map-source.h> 23 : : #include <shumate/shumate-layer.h> 24 : : #include <shumate/shumate-compass.h> 25 : : #include <shumate/shumate-license.h> 26 : : #include <shumate/shumate-scale.h> 27 : : 28 : : G_BEGIN_DECLS 29 : : 30 : : #define SHUMATE_TYPE_SIMPLE_MAP (shumate_simple_map_get_type()) 31 : : 32 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (ShumateSimpleMap, shumate_simple_map, SHUMATE, SIMPLE_MAP, GtkWidget) # # ] 33 : : 34 : : ShumateSimpleMap *shumate_simple_map_new (void); 35 : : 36 : : ShumateViewport *shumate_simple_map_get_viewport (ShumateSimpleMap *self); 37 : : 38 : : ShumateMapSource *shumate_simple_map_get_map_source (ShumateSimpleMap *self); 39 : : void shumate_simple_map_set_map_source (ShumateSimpleMap *self, 40 : : ShumateMapSource *map_source); 41 : : 42 : : void shumate_simple_map_add_overlay_layer (ShumateSimpleMap *self, 43 : : ShumateLayer *layer); 44 : : void shumate_simple_map_insert_overlay_layer (ShumateSimpleMap *self, 45 : : ShumateLayer *layer, 46 : : guint idx); 47 : : void shumate_simple_map_remove_overlay_layer (ShumateSimpleMap *self, 48 : : ShumateLayer *layer); 49 : : 50 : : ShumateCompass *shumate_simple_map_get_compass (ShumateSimpleMap *self); 51 : : 52 : : ShumateLicense *shumate_simple_map_get_license (ShumateSimpleMap *self); 53 : : 54 : : ShumateScale *shumate_simple_map_get_scale (ShumateSimpleMap *self); 55 : : 56 : : gboolean shumate_simple_map_get_show_zoom_buttons (ShumateSimpleMap *self); 57 : : void shumate_simple_map_set_show_zoom_buttons (ShumateSimpleMap *self, 58 : : gboolean show_zoom_buttons); 59 : : 60 : : ShumateMap *shumate_simple_map_get_map (ShumateSimpleMap *self); 61 : : 62 : : G_END_DECLS