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
CLUTTER_DEPRECATED_IN_1_10
87
GType clutter_box_get_type (void) G_GNUC_CONST;
89
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_new)
90
ClutterActor * clutter_box_new (ClutterLayoutManager *manager);
92
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_set_layout_manager)
93
void clutter_box_set_layout_manager (ClutterBox *box,
94
ClutterLayoutManager *manager);
96
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_layout_manager)
97
ClutterLayoutManager *clutter_box_get_layout_manager (ClutterBox *box);
99
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_set_background_color)
100
void clutter_box_set_color (ClutterBox *box,
101
const ClutterColor *color);
103
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_background_color)
104
void clutter_box_get_color (ClutterBox *box,
105
ClutterColor *color);
107
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_add_child)
108
void clutter_box_pack (ClutterBox *box,
110
const gchar *first_property,
113
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_add_child)
114
void clutter_box_packv (ClutterBox *box,
117
const gchar * const properties[],
118
const GValue *values);
120
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_above)
121
void clutter_box_pack_after (ClutterBox *box,
123
ClutterActor *sibling,
124
const gchar *first_property,
127
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_below)
128
void clutter_box_pack_before (ClutterBox *box,
130
ClutterActor *sibling,
131
const gchar *first_property,
134
CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_at_index)
135
void clutter_box_pack_at (ClutterBox *box,
138
const gchar *first_property,
143
#endif /* __CLUTTER_BOX_H__ */