4 * An OpenGL based 'interactive canvas' library.
6 * Copyright (C) 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 * Jose Dapena Paz <jdapena@igalia.com>
24 * Based on the MX MxTable 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_TABLE_LAYOUT_H__
33 #define __CLUTTER_TABLE_LAYOUT_H__
35 #include <clutter/clutter-layout-manager.h>
39 #define CLUTTER_TYPE_TABLE_LAYOUT (clutter_table_layout_get_type ())
40 #define CLUTTER_TABLE_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_TABLE_LAYOUT, ClutterTableLayout))
41 #define CLUTTER_IS_TABLE_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_TABLE_LAYOUT))
42 #define CLUTTER_TABLE_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_TABLE_LAYOUT, ClutterTableLayoutClass))
43 #define CLUTTER_IS_TABLE_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_TABLE_LAYOUT))
44 #define CLUTTER_TABLE_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_TABLE_LAYOUT, ClutterTableLayoutClass))
46 typedef struct _ClutterTableLayout ClutterTableLayout;
47 typedef struct _ClutterTableLayoutPrivate ClutterTableLayoutPrivate;
48 typedef struct _ClutterTableLayoutClass ClutterTableLayoutClass;
53 * The #ClutterTableLayout structure contains only private data
54 * and should be accessed using the provided API
58 struct _ClutterTableLayout
61 ClutterLayoutManager parent_instance;
63 ClutterTableLayoutPrivate *priv;
67 * ClutterTableLayoutClass:
69 * The #ClutterTableLayoutClass structure contains only private
70 * data and should be accessed using the provided API
74 struct _ClutterTableLayoutClass
77 ClutterLayoutManagerClass parent_class;
80 GType clutter_table_layout_get_type (void) G_GNUC_CONST;
82 ClutterLayoutManager *clutter_table_layout_new (void);
84 void clutter_table_layout_pack (ClutterTableLayout *layout,
89 void clutter_table_layout_set_column_spacing (ClutterTableLayout *layout,
91 void clutter_table_layout_set_row_spacing (ClutterTableLayout *layout,
93 guint clutter_table_layout_get_column_spacing (ClutterTableLayout *layout);
94 guint clutter_table_layout_get_row_spacing (ClutterTableLayout *layout);
96 void clutter_table_layout_set_span (ClutterTableLayout *layout,
100 void clutter_table_layout_get_span (ClutterTableLayout *layout,
105 CLUTTER_DEPRECATED_IN_1_12
106 void clutter_table_layout_set_alignment (ClutterTableLayout *layout,
108 ClutterTableAlignment x_align,
109 ClutterTableAlignment y_align);
110 CLUTTER_DEPRECATED_IN_1_12
111 void clutter_table_layout_get_alignment (ClutterTableLayout *layout,
113 ClutterTableAlignment *x_align,
114 ClutterTableAlignment *y_align);
115 CLUTTER_DEPRECATED_IN_1_12
116 void clutter_table_layout_set_fill (ClutterTableLayout *layout,
120 CLUTTER_DEPRECATED_IN_1_12
121 void clutter_table_layout_get_fill (ClutterTableLayout *layout,
125 CLUTTER_DEPRECATED_IN_1_12
126 void clutter_table_layout_set_expand (ClutterTableLayout *layout,
130 CLUTTER_DEPRECATED_IN_1_12
131 void clutter_table_layout_get_expand (ClutterTableLayout *layout,
136 gint clutter_table_layout_get_row_count (ClutterTableLayout *layout);
137 gint clutter_table_layout_get_column_count (ClutterTableLayout *layout);
139 CLUTTER_DEPRECATED_IN_1_12
140 void clutter_table_layout_set_use_animations (ClutterTableLayout *layout,
142 CLUTTER_DEPRECATED_IN_1_12
143 gboolean clutter_table_layout_get_use_animations (ClutterTableLayout *layout);
144 CLUTTER_DEPRECATED_IN_1_12
145 void clutter_table_layout_set_easing_mode (ClutterTableLayout *layout,
147 CLUTTER_DEPRECATED_IN_1_12
148 gulong clutter_table_layout_get_easing_mode (ClutterTableLayout *layout);
149 CLUTTER_DEPRECATED_IN_1_12
150 void clutter_table_layout_set_easing_duration (ClutterTableLayout *layout,
152 CLUTTER_DEPRECATED_IN_1_12
153 guint clutter_table_layout_get_easing_duration (ClutterTableLayout *layout);
157 #endif /* __CLUTTER_TABLE_LAYOUT_H__ */