1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
4 * (GLABELS) Label and Business Card Creation program for GNOME
6 * bc.h: GLabels barcode module header file
8 * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include <glib/gtypes.h>
28 #include <glib/glist.h>
29 #include <pango/pango.h>
34 gdouble x, y, length, width;
43 gdouble width, height;
44 GList *lines; /* List of glBarcodeLine */
45 GList *chars; /* List of glBarcodeChar */
48 typedef glBarcode *(*glBarcodeNewFunc) (const gchar *id,
50 gboolean checksum_flag,
56 #define GL_BARCODE_FONT_FAMILY "Sans"
57 #define GL_BARCODE_FONT_WEIGHT PANGO_WEIGHT_NORMAL
60 glBarcode *gl_barcode_new (const gchar *id,
62 gboolean checksum_flag,
67 void gl_barcode_free (glBarcode **bc);
69 GList *gl_barcode_get_styles_list (void);
70 void gl_barcode_free_styles_list (GList *styles_list);
72 gchar *gl_barcode_default_digits (const gchar *id,
75 gboolean gl_barcode_can_text (const gchar *id);
76 gboolean gl_barcode_text_optional (const gchar *id);
78 gboolean gl_barcode_can_csum (const gchar *id);
79 gboolean gl_barcode_csum_optional (const gchar *id);
81 gboolean gl_barcode_can_freeform (const gchar *id);
82 guint gl_barcode_get_prefered_n (const gchar *id);
84 const gchar *gl_barcode_id_to_name (const gchar *id);
85 const gchar *gl_barcode_name_to_id (const gchar *name);