4 * An OpenGL based 'interactive canvas' library.
6 * Copyright (C) 2009 Intel Corporation
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22 * Emmanuele Bassi <ebassi@linux.intel.com>
25 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
26 #error "Only <clutter/clutter.h> can be included directly."
29 #ifndef __CLUTTER_LAYOUT_META_H__
30 #define __CLUTTER_LAYOUT_META_H__
32 #include <clutter/clutter-types.h>
33 #include <clutter/clutter-child-meta.h>
34 #include <clutter/clutter-layout-manager.h>
38 #define CLUTTER_TYPE_LAYOUT_META (clutter_layout_meta_get_type ())
39 #define CLUTTER_LAYOUT_META(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_LAYOUT_META, ClutterLayoutMeta))
40 #define CLUTTER_IS_LAYOUT_META(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_LAYOUT_META))
41 #define CLUTTER_LAYOUT_META_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_LAYOUT_META, ClutterLayoutMetaClass))
42 #define CLUTTER_IS_LAYOUT_META_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_LAYOUT_META))
43 #define CLUTTER_LAYOUT_META_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_LAYOUT_META, ClutterLayoutMetaClass))
45 /* ClutterLayoutMeta is defined in clutter-types.h */
47 typedef struct _ClutterLayoutMetaClass ClutterLayoutMetaClass;
51 * @manager: the layout manager handling this data
53 * Sub-class of #ClutterChildMeta specific for layout managers
55 * A #ClutterLayoutManager sub-class should create a #ClutterLayoutMeta
56 * instance by overriding the #ClutterLayoutManager::create_child_meta()
61 struct _ClutterLayoutMeta
64 ClutterChildMeta parent_instance;
67 ClutterLayoutManager *manager;
76 * ClutterLayoutMetaClass:
78 * The #ClutterLayoutMetaClass contains only private data and
79 * should never be accessed directly
83 struct _ClutterLayoutMetaClass
86 ClutterChildMetaClass parent_class;
88 /* padding, for expansion */
89 void (*_clutter_padding1) (void);
90 void (*_clutter_padding2) (void);
91 void (*_clutter_padding3) (void);
92 void (*_clutter_padding4) (void);
95 GType clutter_layout_meta_get_type (void) G_GNUC_CONST;
97 ClutterLayoutManager *clutter_layout_meta_get_manager (ClutterLayoutMeta *data);
101 #endif /* __CLUTTER_LAYOUT_META_H__ */