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>
24 * Based on the NBTK NbtkBoxLayout actor by:
25 * Thomas Wood <thomas.wood@intel.com>
28 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
29 #error "Only <clutter/clutter.h> can be included directly."
32 #ifndef __CLUTTER_BOX_LAYOUT_H__
33 #define __CLUTTER_BOX_LAYOUT_H__
35 #include <clutter/clutter-layout-manager.h>
39 #define CLUTTER_TYPE_BOX_LAYOUT (clutter_box_layout_get_type ())
40 #define CLUTTER_BOX_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BOX_LAYOUT, ClutterBoxLayout))
41 #define CLUTTER_IS_BOX_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BOX_LAYOUT))
42 #define CLUTTER_BOX_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BOX_LAYOUT, ClutterBoxLayoutClass))
43 #define CLUTTER_IS_BOX_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BOX_LAYOUT))
44 #define CLUTTER_BOX_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BOX_LAYOUT, ClutterBoxLayoutClass))
46 typedef struct _ClutterBoxLayout ClutterBoxLayout;
47 typedef struct _ClutterBoxLayoutPrivate ClutterBoxLayoutPrivate;
48 typedef struct _ClutterBoxLayoutClass ClutterBoxLayoutClass;
53 * The #ClutterBoxLayout structure contains only private data
54 * and should be accessed using the provided API
58 struct _ClutterBoxLayout
61 ClutterLayoutManager parent_instance;
63 ClutterBoxLayoutPrivate *priv;
67 * ClutterBoxLayoutClass:
69 * The #ClutterBoxLayoutClass structure contains only private
70 * data and should be accessed using the provided API
74 struct _ClutterBoxLayoutClass
77 ClutterLayoutManagerClass parent_class;
80 GType clutter_box_layout_get_type (void) G_GNUC_CONST;
82 ClutterLayoutManager * clutter_box_layout_new (void);
84 CLUTTER_AVAILABLE_IN_1_12
85 void clutter_box_layout_set_orientation (ClutterBoxLayout *layout,
86 ClutterOrientation orientation);
87 CLUTTER_AVAILABLE_IN_1_12
88 ClutterOrientation clutter_box_layout_get_orientation (ClutterBoxLayout *layout);
90 void clutter_box_layout_set_spacing (ClutterBoxLayout *layout,
92 guint clutter_box_layout_get_spacing (ClutterBoxLayout *layout);
93 void clutter_box_layout_set_homogeneous (ClutterBoxLayout *layout,
94 gboolean homogeneous);
95 gboolean clutter_box_layout_get_homogeneous (ClutterBoxLayout *layout);
96 void clutter_box_layout_set_pack_start (ClutterBoxLayout *layout,
98 gboolean clutter_box_layout_get_pack_start (ClutterBoxLayout *layout);
100 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_box_layout_set_orientation)
101 void clutter_box_layout_set_vertical (ClutterBoxLayout *layout,
103 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_box_layout_get_orientation)
104 gboolean clutter_box_layout_get_vertical (ClutterBoxLayout *layout);
106 void clutter_box_layout_pack (ClutterBoxLayout *layout,
111 ClutterBoxAlignment x_align,
112 ClutterBoxAlignment y_align);
113 CLUTTER_DEPRECATED_IN_1_12
114 void clutter_box_layout_set_alignment (ClutterBoxLayout *layout,
116 ClutterBoxAlignment x_align,
117 ClutterBoxAlignment y_align);
118 CLUTTER_DEPRECATED_IN_1_12
119 void clutter_box_layout_get_alignment (ClutterBoxLayout *layout,
121 ClutterBoxAlignment *x_align,
122 ClutterBoxAlignment *y_align);
123 CLUTTER_DEPRECATED_IN_1_12
124 void clutter_box_layout_set_fill (ClutterBoxLayout *layout,
128 CLUTTER_DEPRECATED_IN_1_12
129 void clutter_box_layout_get_fill (ClutterBoxLayout *layout,
133 CLUTTER_DEPRECATED_IN_1_12
134 void clutter_box_layout_set_expand (ClutterBoxLayout *layout,
137 CLUTTER_DEPRECATED_IN_1_12
138 gboolean clutter_box_layout_get_expand (ClutterBoxLayout *layout,
139 ClutterActor *actor);
141 CLUTTER_DEPRECATED_IN_1_12
142 void clutter_box_layout_set_use_animations (ClutterBoxLayout *layout,
144 CLUTTER_DEPRECATED_IN_1_12
145 gboolean clutter_box_layout_get_use_animations (ClutterBoxLayout *layout);
146 CLUTTER_DEPRECATED_IN_1_12
147 void clutter_box_layout_set_easing_mode (ClutterBoxLayout *layout,
149 CLUTTER_DEPRECATED_IN_1_12
150 gulong clutter_box_layout_get_easing_mode (ClutterBoxLayout *layout);
151 CLUTTER_DEPRECATED_IN_1_12
152 void clutter_box_layout_set_easing_duration (ClutterBoxLayout *layout,
154 CLUTTER_DEPRECATED_IN_1_12
155 guint clutter_box_layout_get_easing_duration (ClutterBoxLayout *layout);
159 #endif /* __CLUTTER_BOX_LAYOUT_H__ */