source: branches/client-library-split/memphis-map.h @ 85

Last change on this file since 85 was 85, checked in by simon, 5 years ago

start of the map class implementation and renederer class enhancements

File size: 1.8 KB
Line 
1/*
2 * Memphis - Cairo Rederer for OSM in C
3 * Copyright (C) 2009  Simon Wenner <simon@wenner.ch>
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#ifndef _MEMPHIS_MAP
21#define _MEMPHIS_MAP
22
23#include <glib-object.h>
24#include "osm05.h"
25
26G_BEGIN_DECLS
27
28#define MEMPHIS_TYPE_MAP memphis_map_get_type()
29
30#define MEMPHIS_MAP(obj) \
31  (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEMPHIS_TYPE_MAP, MemphisMap))
32
33#define MEMPHIS_MAP_CLASS(klass) \
34  (G_TYPE_CHECK_CLASS_CAST ((klass), MEMPHIS_TYPE_MAP, MemphisMapClass))
35
36#define MEMPHIS_IS_MAP(obj) \
37  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEMPHIS_TYPE_MAP))
38
39#define MEMPHIS_IS_MAP_CLASS(klass) \
40  (G_TYPE_CHECK_CLASS_TYPE ((klass), MEMPHIS_TYPE_MAP))
41
42#define MEMPHIS_MAP_GET_CLASS(obj) \
43  (G_TYPE_INSTANCE_GET_CLASS ((obj), MEMPHIS_TYPE_MAP, MemphisMapClass))
44
45typedef struct {
46  GObject parent;
47  osmFile *map;
48} MemphisMap;
49
50typedef struct {
51  GObjectClass parent_class;
52} MemphisMapClass;
53
54GType memphis_map_get_type (void);
55
56MemphisMap* memphis_map_new_from_file (gchar* filename);
57MemphisMap* memphis_map_new_from_data (gchar* data);
58void memphis_map_free (MemphisMap* map);
59
60G_END_DECLS
61
62#endif /* _MEMPHIS_MAP */
Note: See TracBrowser for help on using the repository browser.