2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * bc.h: GLabels barcode 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
28 GL_BARCODE_STYLE_POSTNET,
31 GL_BARCODE_STYLE_ISBN,
34 GL_BARCODE_STYLE_128C,
35 GL_BARCODE_STYLE_128B,
37 GL_BARCODE_STYLE_128RAW,
44 gdouble x, y, length, width;
53 gdouble width, height;
54 GList *lines; /* List of glBarcodeLine */
55 GList *chars; /* List of glBarcodeChar */
58 #define GL_BARCODE_FONT_FAMILY "Helvetica"
59 #define GL_BARCODE_FONT_WEIGHT GNOME_FONT_BOOK
61 extern glBarcode *gl_barcode_new (glBarcodeStyle style,
67 gl_barcode_free (glBarcode ** bc);
69 extern gchar *gl_barcode_default_digits (glBarcodeStyle style);
70 extern const gchar *gl_barcode_style_to_text (glBarcodeStyle style);
71 extern glBarcodeStyle gl_barcode_text_to_style (const gchar * text);