4
* An OpenGL based 'interactive canvas' library.
6
* Copyright (C) 2009,2010 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_BOX_H__
30
#define __CLUTTER_BOX_H__
32
#include <clutter/clutter-actor.h>
33
#include <clutter/clutter-container.h>
34
#include <clutter/clutter-layout-manager.h>
38
#define CLUTTER_TYPE_BOX (clutter_box_get_type ())
39
#define CLUTTER_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BOX, ClutterBox))
40
#define CLUTTER_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BOX))
41
#define CLUTTER_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BOX, ClutterBoxClass))
42
#define CLUTTER_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BOX))
43
#define CLUTTER_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BOX, ClutterBoxClass))
45
typedef struct _ClutterBox ClutterBox;
46
typedef struct _ClutterBoxPrivate ClutterBoxPrivate;
47
typedef struct _ClutterBoxClass ClutterBoxClass;
52
* The #ClutterBox structure contains only private data and should
53
* be accessed using the provided API
60
ClutterActor parent_instance;
62
ClutterBoxPrivate *priv;
68
* The #ClutterBoxClass structure contains only private data
72
struct _ClutterBoxClass
75
ClutterActorClass parent_class;
77
/* padding, for future expansion */
78
void (*clutter_padding_1) (void);
79
void (*clutter_padding_2) (void);
80
void (*clutter_padding_3) (void);
81
void (*clutter_padding_4) (void);
82
void (*clutter_padding_5) (void);
83
void (*clutter_padding_6) (void);
86
GType clutter_box_get_type (void) G_GNUC_CONST;
88
ClutterActor * clutter_box_new (ClutterLayoutManager *manager);
90
void clutter_box_set_layout_manager (ClutterBox *box,
91
ClutterLayoutManager *manager);
92
ClutterLayoutManager *clutter_box_get_layout_manager (ClutterBox *box);
94
void clutter_box_set_color (ClutterBox *box,
95
const ClutterColor *color);
96
void clutter_box_get_color (ClutterBox *box,
99
void clutter_box_pack (ClutterBox *box,
101
const gchar *first_property,
102
...) G_GNUC_NULL_TERMINATED;
103
void clutter_box_packv (ClutterBox *box,
106
const gchar * const properties[],
107
const GValue *values);
109
void clutter_box_pack_after (ClutterBox *box,
111
ClutterActor *sibling,
112
const gchar *first_property,
113
...) G_GNUC_NULL_TERMINATED;
114
void clutter_box_pack_before (ClutterBox *box,
116
ClutterActor *sibling,
117
const gchar *first_property,
118
...) G_GNUC_NULL_TERMINATED;
119
void clutter_box_pack_at (ClutterBox *box,
122
const gchar *first_property,
123
...) G_GNUC_NULL_TERMINATED;
127
#endif /* __CLUTTER_BOX_H__ */