Fix 597272: Adjust the typedefs to to keep the C++ bindings happy
[libchamplain:potyl-perl.git] / champlain / champlain-layer.h
1 /*
2  * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@pierlux.com>
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, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18
19 #if !defined (__CHAMPLAIN_CHAMPLAIN_H_INSIDE__) && !defined (CHAMPLAIN_COMPILATION)
20 #error "Only <champlain/champlain.h> can be included directly."
21 #endif
22
23 #ifndef CHAMPLAIN_LAYER_H
24 #define CHAMPLAIN_LAYER_H
25
26 #include <champlain/champlain-defines.h>
27 #include <champlain/champlain-base-marker.h>
28
29 #include <glib-object.h>
30 #include <clutter/clutter.h>
31
32 G_BEGIN_DECLS
33
34 #define CHAMPLAIN_TYPE_LAYER champlain_layer_get_type()
35
36 #define CHAMPLAIN_LAYER(obj) \
37   (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_LAYER, ChamplainLayer))
38
39 #define CHAMPLAIN_LAYER_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_LAYER, ChamplainLayerClass))
41
42 #define CHAMPLAIN_IS_LAYER(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_LAYER))
44
45 #define CHAMPLAIN_IS_LAYER_CLASS(klass) \
46   (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_LAYER))
47
48 #define CHAMPLAIN_LAYER_GET_CLASS(obj) \
49   (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_LAYER, ChamplainLayerClass))
50
51 typedef struct _ChamplainLayer      ChamplainLayer;
52 typedef struct _ChamplainLayerClass ChamplainLayerClass;
53
54 struct _ChamplainLayer {
55   ClutterGroup parent;
56 };
57
58 struct _ChamplainLayerClass {
59   ClutterGroupClass parent_class;
60 };
61
62 GType champlain_layer_get_type (void);
63
64 ChamplainLayer* champlain_layer_new (void);
65
66 void champlain_layer_show (ChamplainLayer *layer);
67 void champlain_layer_hide (ChamplainLayer *layer);
68
69 void champlain_layer_add_marker (ChamplainLayer *layer,
70     ChamplainBaseMarker *marker);
71 void champlain_layer_remove_marker (ChamplainLayer *layer,
72     ChamplainBaseMarker *marker);
73
74 void champlain_layer_animate_in_all_markers (ChamplainLayer *layer);
75 void champlain_layer_animate_out_all_markers (ChamplainLayer *layer);
76
77 void champlain_layer_show_all_markers (ChamplainLayer *layer);
78 void champlain_layer_hide_all_markers (ChamplainLayer *layer);
79
80 G_END_DECLS
81
82 #endif