]> git.sur5r.net Git - glabels/blob - src/bc-backends.h
Imported Upstream version 3.0.0
[glabels] / src / bc-backends.h
1 /*
2  *  bc-backends.h
3  *  Copyright (C) 2001-2010  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
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.
11  *
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.
16  *
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/>.
19  */
20
21 #ifndef __BC_BACKENDS_H__
22 #define __BC_BACKENDS_H__
23
24 #include <glib.h>
25 #include <libglbarcode.h>
26
27 G_BEGIN_DECLS
28
29
30 GList           *gl_barcode_backends_get_backend_list     (void);
31 void             gl_barcode_backends_free_backend_list    (GList          *backend_list);
32
33 const gchar     *gl_barcode_backends_backend_id_to_name   (const gchar    *backend_id);
34 const gchar     *gl_barcode_backends_backend_name_to_id   (const gchar    *backend_name);
35
36 gboolean         gl_barcode_backends_is_backend_id_valid  (const gchar    *backend_id);
37 const gchar     *gl_barcode_backends_guess_backend_id     (const gchar    *id);
38
39 GList           *gl_barcode_backends_get_styles_list      (const gchar    *backend_id);
40 void             gl_barcode_backends_free_styles_list     (GList          *styles_list);
41
42 const gchar     *gl_barcode_backends_style_id_to_name     (const gchar    *backend_id,
43                                                            const gchar    *id);
44 const gchar     *gl_barcode_backends_style_name_to_id     (const gchar    *backend_id,
45                                                            const gchar    *name);
46
47 gchar           *gl_barcode_backends_style_default_digits (const gchar    *backend_id,
48                                                            const gchar    *id,
49                                                            guint           n);
50
51 gboolean         gl_barcode_backends_style_can_text       (const gchar    *backend_id,
52                                                            const gchar    *id);
53 gboolean         gl_barcode_backends_style_text_optional  (const gchar    *backend_id,
54                                                            const gchar    *id);
55
56 gboolean         gl_barcode_backends_style_can_csum       (const gchar    *backend_id,
57                                                            const gchar    *id);
58 gboolean         gl_barcode_backends_style_csum_optional  (const gchar    *backend_id,
59                                                            const gchar    *id);
60
61 gboolean         gl_barcode_backends_style_can_freeform   (const gchar    *backend_id,
62                                                            const gchar    *id);
63 guint            gl_barcode_backends_style_get_prefered_n (const gchar    *backend_id,
64                                                            const gchar    *id);
65
66 lglBarcode      *gl_barcode_backends_new_barcode          (const gchar    *backend_id,
67                                                            const gchar    *id,
68                                                            gboolean        text_flag,
69                                                            gboolean        checksum_flag,
70                                                            gdouble         w,
71                                                            gdouble         h,
72                                                            const gchar    *digits);
73
74
75
76
77 G_END_DECLS
78
79 #endif /* __BC_BACKENDS_H__ */
80
81
82
83 /*
84  * Local Variables:       -- emacs
85  * mode: C                -- emacs
86  * c-basic-offset: 8      -- emacs
87  * tab-width: 8           -- emacs
88  * indent-tabs-mode: nil  -- emacs
89  * End:                   -- emacs
90  */