1 /* This file is part of Ganv.
2  * Copyright 2007-2014 David Robillard <http://drobilla.net>
3  *
4  * Ganv is free software: you can redistribute it and/or modify it under the
5  * terms of the GNU General Public License as published by the Free Software
6  * Foundation, either version 3 of the License, or any later version.
7  *
8  * Ganv is distributed in the hope that it will be useful, but WITHOUT ANY
9  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for details.
11  *
12  * You should have received a copy of the GNU General Public License along
13  * with Ganv.  If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 // IWYU pragma: no_include "ganv-private.h"
17 
18 #ifndef GANV_GROUP_H
19 #define GANV_GROUP_H
20 
21 #include "ganv/item.h"
22 
23 #include <glib-object.h>
24 #include <glib.h>
25 
26 G_BEGIN_DECLS
27 
28 /* Based on GnomeCanvasGroup, by Federico Mena <federico@nuclecu.unam.mx>
29  * and Raph Levien <raph@gimp.org>
30  * Copyright 1997-2000 Free Software Foundation
31  */
32 
33 #define GANV_TYPE_GROUP            (ganv_group_get_type())
34 #define GANV_GROUP(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), GANV_TYPE_GROUP, GanvGroup))
35 #define GANV_GROUP_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), GANV_TYPE_GROUP, GanvGroupClass))
36 #define GANV_IS_GROUP(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), GANV_TYPE_GROUP))
37 #define GANV_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GANV_TYPE_GROUP))
38 #define GANV_GROUP_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), GANV_TYPE_GROUP, GanvGroupClass))
39 
40 struct _GanvGroup;
41 struct _GanvGroupClass;
42 
43 typedef struct _GanvGroup        GanvGroup;
44 typedef struct _GanvGroupPrivate GanvGroupPrivate;
45 typedef struct _GanvGroupClass   GanvGroupClass;
46 
47 struct _GanvGroup {
48 	GanvItem          item;
49 	GanvGroupPrivate* impl;
50 };
51 
52 struct _GanvGroupClass {
53 	GanvItemClass parent_class;
54 
55 	/* Reserved for future expansion */
56 	gpointer spare_vmethods[4];
57 };
58 
59 GType ganv_group_get_type(void) G_GNUC_CONST;
60 
61 G_END_DECLS
62 
63 #endif  /* GANV_GROUP_H */
64