]> git.sur5r.net Git - glabels/blob - glabels2/src/view-image.h
Initial revision
[glabels] / glabels2 / src / view-image.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  view_image.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_IMAGE_H__
24 #define __VIEW_IMAGE_H__
25
26 #include "view-object.h"
27 #include "label-image.h"
28
29 G_BEGIN_DECLS
30
31
32 #define GL_TYPE_VIEW_IMAGE            (gl_view_image_get_type ())
33 #define GL_VIEW_IMAGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_VIEW_IMAGE, glViewImage))
34 #define GL_VIEW_IMAGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW_IMAGE, glViewImageClass))
35 #define GL_IS_VIEW_IMAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW_IMAGE))
36 #define GL_IS_VIEW_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW_IMAGE))
37
38 typedef struct _glViewImage          glViewImage;
39 typedef struct _glViewImageClass     glViewImageClass;
40
41 typedef struct _glViewImagePrivate   glViewImagePrivate;
42
43 struct _glViewImage {
44         glViewObject        parent_object;
45
46         glViewImagePrivate  *private;
47 };
48
49 struct _glViewImageClass {
50         glViewObjectClass   parent_class;
51 };
52
53
54 extern GType          gl_view_image_get_type (void);
55
56 extern glViewObject  *gl_view_image_new      (glLabelImage *object,
57                                               glView     *view);
58
59
60 /* cursor for creating image objects */
61 extern GdkCursor *gl_view_image_get_create_cursor (void);
62
63 /* event handler for creating image objects */
64 extern gint gl_view_image_create_event_handler    (GnomeCanvas *canvas,
65                                                    GdkEvent    *event,
66                                                    glView      *view);
67
68 G_END_DECLS
69
70 #endif /* __VIEW_IMAGE_H__ */