]> git.sur5r.net Git - glabels/blob - glabels2/src/view-ellipse.h
Initial revision
[glabels] / glabels2 / src / view-ellipse.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  view_ellipse.h:  GLabels canvas item wrapper widget
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program 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
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 #ifndef __VIEW_ELLIPSE_H__
24 #define __VIEW_ELLIPSE_H__
25
26 #include "view-object.h"
27 #include "label-ellipse.h"
28
29 G_BEGIN_DECLS
30
31
32 #define GL_TYPE_VIEW_ELLIPSE            (gl_view_ellipse_get_type ())
33 #define GL_VIEW_ELLIPSE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_VIEW_ELLIPSE, glViewEllipse))
34 #define GL_VIEW_ELLIPSE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW_ELLIPSE, glViewEllipseClass))
35 #define GL_IS_VIEW_ELLIPSE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW_ELLIPSE))
36 #define GL_IS_VIEW_ELLIPSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW_ELLIPSE))
37
38 typedef struct _glViewEllipse          glViewEllipse;
39 typedef struct _glViewEllipseClass     glViewEllipseClass;
40
41 typedef struct _glViewEllipsePrivate   glViewEllipsePrivate;
42
43 struct _glViewEllipse {
44         glViewObject          parent_object;
45
46         glViewEllipsePrivate  *private;
47 };
48
49 struct _glViewEllipseClass {
50         glViewObjectClass     parent_class;
51 };
52
53
54 extern GType          gl_view_ellipse_get_type (void);
55
56 extern glViewObject  *gl_view_ellipse_new      (glLabelEllipse *object,
57                                                 glView     *view);
58
59
60 /* cursor for creating ellipse objects */
61 extern GdkCursor *gl_view_ellipse_get_create_cursor (void);
62
63 /* event handler for creating ellipse objects */
64 extern gint gl_view_ellipse_create_event_handler    (GnomeCanvas *canvas,
65                                                      GdkEvent    *event,
66                                                      glView      *view);
67
68 G_END_DECLS
69
70 #endif /* __VIEW_ELLIPSE_H__ */