3 * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
7 * gLabels is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * gLabels is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
25 #include <pango/pango.h>
30 gdouble x, y, length, width;
39 gdouble width, height;
40 GList *lines; /* List of glBarcodeLine */
41 GList *chars; /* List of glBarcodeChar */
44 typedef glBarcode *(*glBarcodeNewFunc) (const gchar *id,
46 gboolean checksum_flag,
52 #define GL_BARCODE_FONT_FAMILY "Sans"
53 #define GL_BARCODE_FONT_WEIGHT PANGO_WEIGHT_NORMAL
56 glBarcode *gl_barcode_new (const gchar *id,
58 gboolean checksum_flag,
63 void gl_barcode_free (glBarcode **bc);
65 GList *gl_barcode_get_styles_list (void);
66 void gl_barcode_free_styles_list (GList *styles_list);
68 gchar *gl_barcode_default_digits (const gchar *id,
71 gboolean gl_barcode_can_text (const gchar *id);
72 gboolean gl_barcode_text_optional (const gchar *id);
74 gboolean gl_barcode_can_csum (const gchar *id);
75 gboolean gl_barcode_csum_optional (const gchar *id);
77 gboolean gl_barcode_can_freeform (const gchar *id);
78 guint gl_barcode_get_prefered_n (const gchar *id);
80 const gchar *gl_barcode_id_to_name (const gchar *id);
81 const gchar *gl_barcode_name_to_id (const gchar *name);
90 * Local Variables: -- emacs
92 * c-basic-offset: 8 -- emacs
93 * tab-width: 8 -- emacs
94 * indent-tabs-mode: nil -- emacs