1 /*
2  * e-canvas-background.h - background color for canvas.
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  *		Chris Lahey <clahey@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_CANVAS_BACKGROUND_H
29 #define E_CANVAS_BACKGROUND_H
30 
31 #include <libgnomecanvas/gnome-canvas.h>
32 
33 /* Standard GObject macros */
34 #define E_TYPE_CANVAS_BACKGROUND \
35 	(e_canvas_background_get_type ())
36 #define E_CANVAS_BACKGROUND(obj) \
37 	(G_TYPE_CHECK_INSTANCE_CAST \
38 	((obj), E_TYPE_CANVAS_BACKGROUND, ECanvasBackground))
39 #define E_CANVAS_BACKGROUND_CLASS(cls) \
40 	(G_TYPE_CHECK_CLASS_CAST \
41 	((cls), E_TYPE_CANVAS_BACKGROUND, ECanvasBackgroundClass))
42 #define E_IS_CANVAS_BACKGROUND(obj) \
43 	(G_TYPE_CHECK_INSTANCE_TYPE \
44 	((obj), E_TYPE_CANVAS_BACKGROUND))
45 #define E_IS_CANVAS_BACKGROUND_CLASS(cls) \
46 	(G_TYPE_CHECK_CLASS_TYPE \
47 	((cls), E_TYPE_CANVAS_BACKGROUND))
48 #define E_CANVAS_BACKGROUND_GET_CLASS(obj) \
49 	(G_TYPE_INSTANCE_GET_CLASS \
50 	((obj), E_TYPE_CANVAS_BACKGROUND, ECanvasBackgroundClass))
51 
52 G_BEGIN_DECLS
53 
54 typedef struct _ECanvasBackground ECanvasBackground;
55 typedef struct _ECanvasBackgroundClass ECanvasBackgroundClass;
56 typedef struct _ECanvasBackgroundPrivate ECanvasBackgroundPrivate;
57 
58 struct _ECanvasBackground {
59 	GnomeCanvasItem item;
60 	ECanvasBackgroundPrivate *priv;
61 };
62 
63 struct _ECanvasBackgroundClass {
64 	GnomeCanvasItemClass parent_class;
65 
66 	void		(*style_updated)	(ECanvasBackground *eti);
67 };
68 
69 GType		e_canvas_background_get_type	(void) G_GNUC_CONST;
70 
71 G_END_DECLS
72 
73 #endif /* E_CANVAS_BACKGROUND */
74