]> git.sur5r.net Git - glabels/blob - glabels2/src/view-line.h
Initial revision
[glabels] / glabels2 / src / view-line.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  view_line.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_LINE_H__
24 #define __VIEW_LINE_H__
25
26 #include "view-object.h"
27 #include "label-line.h"
28
29 G_BEGIN_DECLS
30
31
32 #define GL_TYPE_VIEW_LINE            (gl_view_line_get_type ())
33 #define GL_VIEW_LINE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_VIEW_LINE, glViewLine))
34 #define GL_VIEW_LINE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW_LINE, glViewLineClass))
35 #define GL_IS_VIEW_LINE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW_LINE))
36 #define GL_IS_VIEW_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW_LINE))
37
38 typedef struct _glViewLine          glViewLine;
39 typedef struct _glViewLineClass     glViewLineClass;
40
41 typedef struct _glViewLinePrivate   glViewLinePrivate;
42
43 struct _glViewLine {
44         glViewObject          parent_object;
45
46         glViewLinePrivate  *private;
47 };
48
49 struct _glViewLineClass {
50         glViewObjectClass     parent_class;
51 };
52
53
54 extern GType          gl_view_line_get_type (void);
55
56 extern glViewObject  *gl_view_line_new      (glLabelLine *object,
57                                              glView     *view);
58
59
60 /* cursor for creating line objects */
61 extern GdkCursor *gl_view_line_get_create_cursor (void);
62
63 /* event handler for creating line objects */
64 extern gint gl_view_line_create_event_handler    (GnomeCanvas *canvas,
65                                                   GdkEvent    *event,
66                                                   glView      *view);
67
68 G_END_DECLS
69
70 #endif /* __VIEW_LINE_H__ */