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

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

initial libmemphis class skeletons

File size: 1.7 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
25G_BEGIN_DECLS
26
27#define MEMPHIS_TYPE_MAP memphis_map_get_type()
28
29#define MEMPHIS_MAP(obj) \
30  (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEMPHIS_TYPE_MAP, MemphisMap))
31
32#define MEMPHIS_MAP_CLASS(klass) \
33  (G_TYPE_CHECK_CLASS_CAST ((klass), MEMPHIS_TYPE_MAP, MemphisMapClass))
34
35#define MEMPHIS_IS_MAP(obj) \
36  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEMPHIS_TYPE_MAP))
37
38#define MEMPHIS_IS_MAP_CLASS(klass) \
39  (G_TYPE_CHECK_CLASS_TYPE ((klass), MEMPHIS_TYPE_MAP))
40
41#define MEMPHIS_MAP_GET_CLASS(obj) \
42  (G_TYPE_INSTANCE_GET_CLASS ((obj), MEMPHIS_TYPE_MAP, MemphisMapClass))
43
44typedef struct {
45  GObject parent;
46} MemphisMap;
47
48typedef struct {
49  GObjectClass parent_class;
50} MemphisMapClass;
51
52GType memphis_map_get_type (void);
53
54MemphisMap* memphis_map_new (void);
55
56G_END_DECLS
57
58#endif /* _MEMPHIS_MAP */
Note: See TracBrowser for help on using the repository browser.