shumate/shumate-map-layer.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | * Copyright 2020 Collabora, Ltd. (https://www.collabora.com) | ||
| 3 | * Copyright 2020 Corentin Noël <corentin.noel@collabora.com> | ||
| 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_MAP_LAYER_H__ | ||
| 25 | #define __SHUMATE_MAP_LAYER_H__ | ||
| 26 | |||
| 27 | #include <shumate/shumate-layer.h> | ||
| 28 | #include <shumate/shumate-map-source.h> | ||
| 29 | #include <shumate/shumate-version.h> | ||
| 30 | |||
| 31 | G_BEGIN_DECLS | ||
| 32 | |||
| 33 | #define SHUMATE_TYPE_MAP_LAYER shumate_map_layer_get_type () | ||
| 34 | ✗ | G_DECLARE_FINAL_TYPE (ShumateMapLayer, shumate_map_layer, SHUMATE, MAP_LAYER, ShumateLayer) | |
| 35 | |||
| 36 | ShumateMapLayer *shumate_map_layer_new (ShumateMapSource *map_source, | ||
| 37 | ShumateViewport *viewport); | ||
| 38 | |||
| 39 | SHUMATE_AVAILABLE_IN_1_7 | ||
| 40 | ShumateMapSource *shumate_map_layer_get_map_source (ShumateMapLayer *self); | ||
| 41 | SHUMATE_AVAILABLE_IN_1_7 | ||
| 42 | void shumate_map_layer_set_map_source (ShumateMapLayer *self, | ||
| 43 | ShumateMapSource *map_source); | ||
| 44 | SHUMATE_AVAILABLE_IN_1_7 | ||
| 45 | void shumate_map_layer_refresh (ShumateMapLayer *self); | ||
| 46 | SHUMATE_AVAILABLE_IN_1_7 | ||
| 47 | void shumate_map_layer_retry_failed (ShumateMapLayer *self); | ||
| 48 | |||
| 49 | G_END_DECLS | ||
| 50 | |||
| 51 | #endif /* __SHUMATE_MAP_LAYER_H__ */ | ||
| 52 |