1 /*
2  *
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public License
13  * along with this program; if not, see <http://www.gnu.org/licenses/>.
14  *
15  *
16  * Authors:
17  *		Srinivasa Ragavan <sragavan@novell.com>
18  *
19  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
20  *
21  */
22 
23 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
24 #error "Only <e-util/e-util.h> should be included directly."
25 #endif
26 
27 #ifndef _E_CELL_HBOX_H_
28 #define _E_CELL_HBOX_H_
29 
30 #include <libgnomecanvas/libgnomecanvas.h>
31 
32 #include <e-util/e-cell.h>
33 
34 /* Standard GObject macros */
35 #define E_TYPE_CELL_HBOX \
36 	(e_cell_hbox_get_type ())
37 #define E_CELL_HBOX(obj) \
38 	(G_TYPE_CHECK_INSTANCE_CAST \
39 	((obj), E_TYPE_CELL_HBOX, ECellHbox))
40 #define E_CELL_HBOX_CLASS(cls) \
41 	(G_TYPE_CHECK_CLASS_CAST \
42 	((cls), E_TYPE_CELL_HBOX, ECellHboxClass))
43 #define E_IS_CELL_HBOX(obj) \
44 	(G_TYPE_CHECK_INSTANCE_TYPE \
45 	((obj), E_TYPE_CELL_HBOX))
46 #define E_IS_CELL_HBOX_CLASS(cls) \
47 	(G_TYPE_CHECK_CLASS_TYPE \
48 	((cls), E_TYPE_CELL_HBOX))
49 #define E_CELL_HBOX_GET_CLASS(obj) \
50 	(G_TYPE_INSTANCE_GET_CLASS \
51 	((obj), E_TYPE_CELL_HBOX, ECellHboxClass))
52 
53 G_BEGIN_DECLS
54 
55 typedef struct _ECellHbox ECellHbox;
56 typedef struct _ECellHboxView ECellHboxView;
57 typedef struct _ECellHboxClass ECellHboxClass;
58 
59 struct _ECellHbox {
60 	ECell parent;
61 
62 	gint subcell_count;
63 	ECell **subcells;
64 	gint *model_cols;
65 	gint *def_size_cols;
66 };
67 
68 struct _ECellHboxView {
69 	ECellView cell_view;
70 
71 	gint subcell_view_count;
72 	ECellView **subcell_views;
73 	gint *model_cols;
74 	gint *def_size_cols;
75 };
76 
77 struct _ECellHboxClass {
78 	ECellClass parent_class;
79 };
80 
81 GType		e_cell_hbox_get_type		(void) G_GNUC_CONST;
82 ECell *		e_cell_hbox_new			(void);
83 void		e_cell_hbox_append		(ECellHbox *vbox,
84 						 ECell *subcell,
85 						 gint model_col,
86 						 gint size);
87 
88 G_END_DECLS
89 
90 #endif /* _E_CELL_HBOX_H_ */
91