1
/*
2
 * Copyright (C) 2011-2012 Jiri Techet <techet@gmail.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 <clutter/clutter.h>
27
#include <champlain/champlain-defines.h>
28
#include <champlain/champlain-bounding-box.h>
29
30
G_BEGIN_DECLS
31
32
#define CHAMPLAIN_TYPE_LAYER champlain_layer_get_type ()
33
34
#define CHAMPLAIN_LAYER(obj) \
35
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_LAYER, ChamplainLayer))
36
37
#define CHAMPLAIN_LAYER_CLASS(klass) \
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_LAYER, ChamplainLayerClass))
39
40
#define CHAMPLAIN_IS_LAYER(obj) \
41
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_LAYER))
42
43
#define CHAMPLAIN_IS_LAYER_CLASS(klass) \
44
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_LAYER))
45
46
#define CHAMPLAIN_LAYER_GET_CLASS(obj) \
47
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_LAYER, ChamplainLayerClass))
48
49
typedef struct _ChamplainLayer ChamplainLayer;
50
typedef struct _ChamplainLayerClass ChamplainLayerClass;
51
52
/**
53
 * ChamplainLayer:
54
 *
55
 * The #ChamplainLayer structure contains only private data
56
 * and should be accessed using the provided API
57
 *
58
 * Since: 0.10
59
 */
60
struct _ChamplainLayer
61
{
62
  ClutterActor parent;
63
};
64
65
struct _ChamplainLayerClass
66
{
67
  ClutterActorClass parent_class;
68
69
  void (*set_view)(ChamplainLayer *layer,
70
      ChamplainView *view);
71
  ChamplainBoundingBox * (*get_bounding_box)(ChamplainLayer * layer);
72
};
73
74
GType champlain_layer_get_type (void);
75
76
77
void champlain_layer_set_view (ChamplainLayer *layer,
78
    ChamplainView *view);
79
80
ChamplainBoundingBox *champlain_layer_get_bounding_box (ChamplainLayer *layer);
81
82
G_END_DECLS
83
84
#endif /* __CHAMPLAIN_LAYER_H__ */