1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU Lesser General Public License as published by
4  * the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9  * for more details.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, see <http://www.gnu.org/licenses/>.
13  *
14  *
15  * Authors:
16  *		Chris Lahey <clahey@ximian.com>
17  *
18  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
19  *
20  */
21 
22 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
23 #error "Only <e-util/e-util.h> should be included directly."
24 #endif
25 
26 #ifndef __E_CANVAS_UTILS__
27 #define __E_CANVAS_UTILS__
28 
29 #include <libgnomecanvas/gnome-canvas.h>
30 
31 G_BEGIN_DECLS
32 
33 void      e_canvas_item_move_absolute      (GnomeCanvasItem *item,
34 					    gdouble           dx,
35 					    gdouble           dy);
36 void      e_canvas_item_show_area          (GnomeCanvasItem *item,
37 					    gdouble           x1,
38 					    gdouble           y1,
39 					    gdouble           x2,
40 					    gdouble           y2);
41 void      e_canvas_item_show_area_delayed  (GnomeCanvasItem *item,
42 					    gdouble           x1,
43 					    gdouble           y1,
44 					    gdouble           x2,
45 					    gdouble           y2,
46 					    gint             delay);
47 GSource * e_canvas_item_show_area_delayed_ex
48 					   (GnomeCanvasItem *item,
49 					    gdouble           x1,
50 					    gdouble           y1,
51 					    gdouble           x2,
52 					    gdouble           y2,
53 					    gint             delay);
54 /* Returns TRUE if the area is already shown on the screen (including
55  * spacing.)  This is equivelent to returning FALSE iff show_area
56  * would do anything. */
57 gboolean  e_canvas_item_area_shown         (GnomeCanvasItem *item,
58 					    gdouble           x1,
59 					    gdouble           y1,
60 					    gdouble           x2,
61 					    gdouble           y2);
62 
63 G_END_DECLS
64 
65 #endif /* __E_CANVAS_UTILS__ */
66