]> git.sur5r.net Git - glabels/blob - src/bc-backends.h
Add some selection slop to barcode and text objects
[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 const gchar     *gl_barcode_backends_guess_backend_id     (const gchar    *id);
37
38 GList           *gl_barcode_backends_get_styles_list      (const gchar    *backend_id);
39 void             gl_barcode_backends_free_styles_list     (GList          *styles_list);
40
41 const gchar     *gl_barcode_backends_style_id_to_name     (const gchar    *backend_id,
42                                                            const gchar    *id);
43 const gchar     *gl_barcode_backends_style_name_to_id     (const gchar    *backend_id,
44                                                            const gchar    *name);
45
46 gchar           *gl_barcode_backends_style_default_digits (const gchar    *backend_id,
47                                                            const gchar    *id,
48                                                            guint           n);
49
50 gboolean         gl_barcode_backends_style_can_text       (const gchar    *backend_id,
51                                                            const gchar    *id);
52 gboolean         gl_barcode_backends_style_text_optional  (const gchar    *backend_id,
53                                                            const gchar    *id);
54
55 gboolean         gl_barcode_backends_style_can_csum       (const gchar    *backend_id,
56                                                            const gchar    *id);
57 gboolean         gl_barcode_backends_style_csum_optional  (const gchar    *backend_id,
58                                                            const gchar    *id);
59
60 gboolean         gl_barcode_backends_style_can_freeform   (const gchar    *backend_id,
61                                                            const gchar    *id);
62 guint            gl_barcode_backends_style_get_prefered_n (const gchar    *backend_id,
63                                                            const gchar    *id);
64
65 lglBarcode      *gl_barcode_backends_new_barcode          (const gchar    *backend_id,
66                                                            const gchar    *id,
67                                                            gboolean        text_flag,
68                                                            gboolean        checksum_flag,
69                                                            gdouble         w,
70                                                            gdouble         h,
71                                                            const gchar    *digits);
72
73
74
75
76 G_END_DECLS
77
78 #endif /* __BC_BACKENDS_H__ */
79
80
81
82 /*
83  * Local Variables:       -- emacs
84  * mode: C                -- emacs
85  * c-basic-offset: 8      -- emacs
86  * tab-width: 8           -- emacs
87  * indent-tabs-mode: nil  -- emacs
88  * End:                   -- emacs
89  */