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 : : 19 : : #pragma once 20 : : 21 : : #include <shumate/shumate-data-source.h> 22 : : #include <shumate/shumate-map-source.h> 23 : : 24 : : G_BEGIN_DECLS 25 : : 26 : : 27 : : #define SHUMATE_TYPE_RASTER_RENDERER (shumate_raster_renderer_get_type()) 28 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (ShumateRasterRenderer, shumate_raster_renderer, SHUMATE, RASTER_RENDERER, ShumateMapSource) # # ] 29 : : 30 : : 31 : : ShumateRasterRenderer *shumate_raster_renderer_new (ShumateDataSource *data_source); 32 : : ShumateRasterRenderer *shumate_raster_renderer_new_from_url (const char *url_template); 33 : : 34 : : ShumateRasterRenderer *shumate_raster_renderer_new_full (const char *id, 35 : : const char *name, 36 : : const char *license, 37 : : const char *license_uri, 38 : : guint min_zoom, 39 : : guint max_zoom, 40 : : guint tile_size, 41 : : ShumateMapProjection projection, 42 : : ShumateDataSource *data_source); 43 : : ShumateRasterRenderer *shumate_raster_renderer_new_full_from_url (const char *id, 44 : : const char *name, 45 : : const char *license, 46 : : const char *license_uri, 47 : : guint min_zoom, 48 : : guint max_zoom, 49 : : guint tile_size, 50 : : ShumateMapProjection projection, 51 : : const char *url_template); 52 : : 53 : : G_END_DECLS