Debian Codegraph @

clutter/deprecated/clutter-box.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright (C) 2009,2010 Intel Corporation.
7 *
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.
12 *
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.
17 *
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/>.
20 *
21 * Author:
22 * Emmanuele Bassi <[email protected]>
23 */
24
25 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
26 #error "Only <clutter/clutter.h> can be included directly."
27 #endif
28
29 #ifndef __CLUTTER_BOX_H__
30 #define __CLUTTER_BOX_H__
31
32 #include <clutter/clutter-actor.h>
33 #include <clutter/clutter-container.h>
34 #include <clutter/clutter-layout-manager.h>
35
36 G_BEGIN_DECLS
37
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))
44
45 typedef struct _ClutterBox ClutterBox;
46 typedef struct _ClutterBoxPrivate ClutterBoxPrivate;
47 typedef struct _ClutterBoxClass ClutterBoxClass;
48
49 /**
50 * ClutterBox:
51 *
52 * The #ClutterBox structure contains only private data and should
53 * be accessed using the provided API
54 *
55 * Since: 1.2
56 */
57 struct _ClutterBox
58 {
59 /*< private >*/
60 ClutterActor parent_instance;
61
62 ClutterBoxPrivate *priv;
63 };
64
65 /**
66 * ClutterBoxClass:
67 *
68 * The #ClutterBoxClass structure contains only private data
69 *
70 * Since: 1.2
71 */
72 struct _ClutterBoxClass
73 {
74 /*< private >*/
75 ClutterActorClass parent_class;
76
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);
84 };
85
86 CLUTTER_DEPRECATED_IN_1_10
87 GType clutter_box_get_type (void) G_GNUC_CONST;
88
89 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_new)
90 ClutterActor * clutter_box_new (ClutterLayoutManager *manager);
91
92 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_set_layout_manager)
93 void clutter_box_set_layout_manager (ClutterBox *box,
94 ClutterLayoutManager *manager);
95
96 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_layout_manager)
97 ClutterLayoutManager *clutter_box_get_layout_manager (ClutterBox *box);
98
99 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_set_background_color)
100 void clutter_box_set_color (ClutterBox *box,
101 const ClutterColor *color);
102
103 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_get_background_color)
104 void clutter_box_get_color (ClutterBox *box,
105 ClutterColor *color);
106
107 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_add_child)
108 void clutter_box_pack (ClutterBox *box,
109 ClutterActor *actor,
110 const gchar *first_property,
111 ...);
112
113 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_add_child)
114 void clutter_box_packv (ClutterBox *box,
115 ClutterActor *actor,
116 guint n_properties,
117 const gchar * const properties[],
118 const GValue *values);
119
120 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_above)
121 void clutter_box_pack_after (ClutterBox *box,
122 ClutterActor *actor,
123 ClutterActor *sibling,
124 const gchar *first_property,
125 ...);
126
127 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_below)
128 void clutter_box_pack_before (ClutterBox *box,
129 ClutterActor *actor,
130 ClutterActor *sibling,
131 const gchar *first_property,
132 ...);
133
134 CLUTTER_DEPRECATED_IN_1_10_FOR(clutter_actor_insert_child_at_index)
135 void clutter_box_pack_at (ClutterBox *box,
136 ClutterActor *actor,
137 gint position,
138 const gchar *first_property,
139 ...);
140
141 G_END_DECLS
142
143 #endif /* __CLUTTER_BOX_H__ */