2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * view_highlight.h: GLabels Resizable Highlight module header file
6 * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
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.
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.
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
22 #ifndef __VIEW_HIGHLIGHT_H__
23 #define __VIEW_HIGHLIGHT_H__
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;
35 #include "label-object.h"
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))
45 typedef struct _glViewHighlight glViewHighlight;
46 typedef struct _glViewHighlightClass glViewHighlightClass;
48 typedef struct _glViewHighlightPrivate glViewHighlightPrivate;
51 struct _glViewHighlight {
52 GObject parent_object;
54 glViewHighlightPrivate *private;
57 struct _glViewHighlightClass {
58 GObjectClass parent_class;
63 GType gl_view_highlight_get_type (void);
65 GObject *gl_view_highlight_new (glViewObject *view_object,
66 glViewHighlightStyle style);
68 void gl_view_highlight_show (glViewHighlight *view_highlight);
69 void gl_view_highlight_hide (glViewHighlight *view_highlight);