shumate/shumate-simple-map.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 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-layer.h> | ||
| 23 | #include <shumate/shumate-map-source.h> | ||
| 24 | #include <shumate/shumate-layer.h> | ||
| 25 | #include <shumate/shumate-compass.h> | ||
| 26 | #include <shumate/shumate-license.h> | ||
| 27 | #include <shumate/shumate-scale.h> | ||
| 28 | #include <shumate/shumate-version.h> | ||
| 29 | |||
| 30 | G_BEGIN_DECLS | ||
| 31 | |||
| 32 | #define SHUMATE_TYPE_SIMPLE_MAP (shumate_simple_map_get_type()) | ||
| 33 | |||
| 34 | ✗ | G_DECLARE_FINAL_TYPE (ShumateSimpleMap, shumate_simple_map, SHUMATE, SIMPLE_MAP, GtkWidget) | |
| 35 | |||
| 36 | ShumateSimpleMap *shumate_simple_map_new (void); | ||
| 37 | |||
| 38 | ShumateViewport *shumate_simple_map_get_viewport (ShumateSimpleMap *self); | ||
| 39 | |||
| 40 | ShumateMapSource *shumate_simple_map_get_map_source (ShumateSimpleMap *self); | ||
| 41 | void shumate_simple_map_set_map_source (ShumateSimpleMap *self, | ||
| 42 | ShumateMapSource *map_source); | ||
| 43 | |||
| 44 | void shumate_simple_map_add_overlay_layer (ShumateSimpleMap *self, | ||
| 45 | ShumateLayer *layer); | ||
| 46 | SHUMATE_AVAILABLE_IN_1_5 | ||
| 47 | void shumate_simple_map_insert_overlay_layer_above (ShumateSimpleMap *self, | ||
| 48 | ShumateLayer *layer, | ||
| 49 | ShumateLayer *sibling); | ||
| 50 | SHUMATE_AVAILABLE_IN_1_5 | ||
| 51 | void shumate_simple_map_insert_overlay_layer_behind (ShumateSimpleMap *self, | ||
| 52 | ShumateLayer *layer, | ||
| 53 | ShumateLayer *sibling); | ||
| 54 | void shumate_simple_map_remove_overlay_layer (ShumateSimpleMap *self, | ||
| 55 | ShumateLayer *layer); | ||
| 56 | |||
| 57 | ShumateCompass *shumate_simple_map_get_compass (ShumateSimpleMap *self); | ||
| 58 | |||
| 59 | ShumateLicense *shumate_simple_map_get_license (ShumateSimpleMap *self); | ||
| 60 | |||
| 61 | ShumateScale *shumate_simple_map_get_scale (ShumateSimpleMap *self); | ||
| 62 | |||
| 63 | gboolean shumate_simple_map_get_show_zoom_buttons (ShumateSimpleMap *self); | ||
| 64 | void shumate_simple_map_set_show_zoom_buttons (ShumateSimpleMap *self, | ||
| 65 | gboolean show_zoom_buttons); | ||
| 66 | |||
| 67 | ShumateMap *shumate_simple_map_get_map (ShumateSimpleMap *self); | ||
| 68 | SHUMATE_AVAILABLE_IN_1_4 | ||
| 69 | ShumateMapLayer *shumate_simple_map_get_base_map_layer (ShumateSimpleMap *self); | ||
| 70 | |||
| 71 | G_END_DECLS | ||
| 72 |