]> git.sur5r.net Git - glabels/blob - glabels2/src/view-highlight.h
View_highlight is now a full-fledged object that tracks its corresponding label objec...
[glabels] / glabels2 / src / view-highlight.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  view_highlight.h:  GLabels Resizable Highlight module header file
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 #ifndef __VIEW_HIGHLIGHT_H__
23 #define __VIEW_HIGHLIGHT_H__
24
25 #include <gnome.h>
26
27 typedef enum {
28         GL_VIEW_HIGHLIGHT_BOX_RESIZABLE,
29         GL_VIEW_HIGHLIGHT_ELLIPSE_RESIZABLE,
30         GL_VIEW_HIGHLIGHT_LINE_RESIZABLE,
31         GL_VIEW_HIGHLIGHT_SIMPLE,
32 } glViewHighlightStyle;
33
34 #include "view.h"
35 #include "label-object.h"
36
37 G_BEGIN_DECLS
38
39 #define GL_TYPE_VIEW_HIGHLIGHT            (gl_view_highlight_get_type ())
40 #define GL_VIEW_HIGHLIGHT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_VIEW_HIGHLIGHT, glViewHighlight))
41 #define GL_VIEW_HIGHLIGHT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW_HIGHLIGHT, glViewHighlightClass))
42 #define GL_IS_VIEW_HIGHLIGHT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW_HIGHLIGHT))
43 #define GL_IS_VIEW_HIGHLIGHT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW_HIGHLIGHT))
44
45 typedef struct _glViewHighlight          glViewHighlight;
46 typedef struct _glViewHighlightClass     glViewHighlightClass;
47
48 typedef struct _glViewHighlightPrivate   glViewHighlightPrivate;
49
50
51 struct _glViewHighlight {
52         GObject                  parent_object;
53
54         glViewHighlightPrivate  *private;
55 };
56
57 struct _glViewHighlightClass {
58         GObjectClass             parent_class;
59 };
60
61
62
63 GType    gl_view_highlight_get_type (void);
64
65 GObject *gl_view_highlight_new      (glViewObject         *view_object,
66                                      glViewHighlightStyle  style);
67
68 void     gl_view_highlight_show     (glViewHighlight      *view_highlight);
69 void     gl_view_highlight_hide     (glViewHighlight      *view_highlight);
70
71 G_END_DECLS
72
73 #endif