glbarcode++
 
Loading...
Searching...
No Matches
gbc_barcode.h
Go to the documentation of this file.
1/* gbc_barcode.h
2 *
3 * Copyright (C) 2013 Jaye Evins <evins@snaught.com>
4 *
5 * This file is part of glbarcode++.
6 *
7 * glbarcode++ is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser 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 * glbarcode++ 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 Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with glbarcode++. If not, see <http://www.gnu.org/licenses/>.
19 */
20
27#ifndef gbc_barcode_h
28#define gbc_barcode_h
29
30
31#include "gbc_renderer.h"
32
33#include <stdbool.h>
34
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40
44 typedef struct gbcBarcode gbcBarcode;
45
46
53
54
62 void gbc_barcode_set_show_text( gbcBarcode *bc, bool value );
63
64
73
74
81 void gbc_barcode_set_checksum( gbcBarcode *bc, bool value );
82
83
92
93
103 char *data,
104 double w,
105 double h);
106
107
115 gbcRenderer *renderer );
116
117
127
128
138
139
148
149
158
159
160
161#ifdef __cplusplus
162}
163#endif
164
165
166#endif // gbc_barcode_h
bool gbc_barcode_get_show_text(gbcBarcode *bc)
bool gbc_barcode_is_empty(gbcBarcode *bc)
double gbc_barcode_get_width(gbcBarcode *bc)
bool gbc_barcode_get_checksum(gbcBarcode *bc)
void gbc_barcode_set_checksum(gbcBarcode *bc, bool value)
bool gbc_barcode_is_data_valid(gbcBarcode *bc)
void gbc_barcode_set_show_text(gbcBarcode *bc, bool value)
void gbc_barcode_render(gbcBarcode *bc, gbcRenderer *renderer)
double gbc_barcode_get_height(gbcBarcode *bc)
void gbc_barcode_delete(gbcBarcode *bc)
void gbc_barcode_build(gbcBarcode *bc, char *data, double w, double h)
Definition Barcode.hpp:34
Definition Renderer.hpp:33