2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * view_barcode.h: GLabels canvas item wrapper widget
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
23 #ifndef __VIEW_BARCODE_H__
24 #define __VIEW_BARCODE_H__
26 #include "view-object.h"
27 #include "label-barcode.h"
32 #define GL_TYPE_VIEW_BARCODE (gl_view_barcode_get_type ())
33 #define GL_VIEW_BARCODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_VIEW_BARCODE, glViewBarcode))
34 #define GL_VIEW_BARCODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW_BARCODE, glViewBarcodeClass))
35 #define GL_IS_VIEW_BARCODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW_BARCODE))
36 #define GL_IS_VIEW_BARCODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW_BARCODE))
38 typedef struct _glViewBarcode glViewBarcode;
39 typedef struct _glViewBarcodeClass glViewBarcodeClass;
41 typedef struct _glViewBarcodePrivate glViewBarcodePrivate;
43 struct _glViewBarcode {
44 glViewObject parent_object;
46 glViewBarcodePrivate *private;
49 struct _glViewBarcodeClass {
50 glViewObjectClass parent_class;
54 extern GType gl_view_barcode_get_type (void);
56 extern glViewObject *gl_view_barcode_new (glLabelBarcode *object,
60 /* cursor for creating barcode objects */
61 extern GdkCursor *gl_view_barcode_get_create_cursor (void);
63 /* event handler for creating barcode objects */
64 extern gint gl_view_barcode_create_event_handler (GnomeCanvas *canvas,
70 #endif /* __VIEW_BARCODE_H__ */