1 /*
2  * e-cell-pixbuf.h - An ECell that displays a GdkPixbuf
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  *
16  *
17  * Authors:
18  *		Vladimir Vukicevic <vladimir@ximian.com>
19  *
20  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21  *
22  */
23 
24 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
25 #error "Only <e-util/e-util.h> should be included directly."
26 #endif
27 
28 #ifndef _E_CELL_PIXBUF_H_
29 #define _E_CELL_PIXBUF_H_
30 
31 #include <e-util/e-table.h>
32 
33 /* Standard GObject macros */
34 #define E_TYPE_CELL_PIXBUF \
35 	(e_cell_pixbuf_get_type ())
36 #define E_CELL_PIXBUF(obj) \
37 	(G_TYPE_CHECK_INSTANCE_CAST \
38 	((obj), E_TYPE_CELL_PIXBUF, ECellPixbuf))
39 #define E_CELL_PIXBUF_CLASS(cls) \
40 	(G_TYPE_CHECK_INSTANCE_CAST_CLASS \
41 	((cls), E_TYPE_CELL_PIXBUF, ECellPixbufClass))
42 #define E_IS_CELL_PIXBUF(obj) \
43 	(G_TYPE_CHECK_INSTANCE_TYPE \
44 	((obj), E_TYPE_CELL_PIXBUF))
45 #define E_IS_CELL_PIXBUF_CLASS(cls) \
46 	(G_TYPE_CHECK_CLASS_TYPE \
47 	((cls), E_TYPE_CELL_PIXBUF))
48 #define E_CELL_PIXBUF_GET_CLASS(obj) \
49 	(G_TYPE_INSTANCE_GET_CLASS \
50 	((obj), E_TYPE_CELL_PIXBUF, ECellPixbufClass))
51 
52 G_BEGIN_DECLS
53 
54 typedef struct _ECellPixbuf ECellPixbuf;
55 typedef struct _ECellPixbufClass ECellPixbufClass;
56 
57 struct _ECellPixbuf {
58 	ECell parent;
59 
60 	gint selected_column;
61 	gint focused_column;
62 	gint unselected_column;
63 };
64 
65 struct _ECellPixbufClass {
66 	ECellClass parent_class;
67 };
68 
69 GType		e_cell_pixbuf_get_type		(void) G_GNUC_CONST;
70 ECell *		e_cell_pixbuf_new		(void);
71 
72 G_END_DECLS
73 
74 #endif /* _E_CELL_PIXBUF_H */
75