14extern "C" struct zint_symbol;
41 std::unique_ptr<Data> d;
53#define ZX_PROPERTY(TYPE, NAME) \
54 const TYPE& NAME() const noexcept; \
55 CreatorOptions& NAME(TYPE v)&; \
56 CreatorOptions&& NAME(TYPE v)&&;
63#define ZX_RO_PROPERTY(TYPE, NAME) \
64 std::optional<TYPE> NAME() const noexcept;
70 ZX_RO_PROPERTY(std::string,
eci);
73 ZX_RO_PROPERTY(
bool,
gs1);
113#if defined(__cpp_lib_char8_t)
117#if defined(__cpp_lib_ranges)
119requires std::ranges::contiguous_range<R> && std::ranges::sized_range<R> && (
sizeof(std::ranges::range_value_t<R>) == 1)
The Barcode class encapsulates a decoded or created barcode symbol.
Definition Barcode.h:64
Configuration options for barcode creation.
Definition CreateBarcode.h:38
friend Barcode CreateBarcode(const void *data, int size, int mode, const CreatorOptions &options)
std::optional< bool > readerInit() const noexcept
most 2D symbologies: set the "reader init" flag
std::optional< std::string > ecLevel() const noexcept
most 2D symbologies: ecLevel, e.g. "30%", see also libzint docs for supported values per symbology
std::optional< bool > forceSquare() const noexcept
DataMatrix: only consider square symbol versions.
zint_symbol * zint() const
std::optional< int > version() const noexcept
most 2D symbologies: specify the version/size of the symbol
std::optional< int > rows() const noexcept
specify number of rows (e.g. for DataBarExpStk, PDF417)
std::optional< std::string > eci() const noexcept
most 2D symbologies: specify ECI designator to use (e.g. "UTF-8" or "26" for UTF-8),...
const BarcodeFormat & format() const noexcept
const std::string & options() const noexcept
std::optional< int > columns() const noexcept
specify number of columns (e.g. for DataBarExpStk, PDF417)
std::optional< int > dataMask() const noexcept
QRCode/MicroQRCode: specify dataMask to use.
CreatorOptions(CreatorOptions &&) noexcept
std::optional< bool > gs1() const noexcept
GS1 mode.
CreatorOptions(BarcodeFormat format, std::string options={})
Barcode CreateBarcodeFromText(std::string_view contents, const CreatorOptions &options)
Generate Barcode from unicode text.
BarcodeFormat
Enumerates barcode formats known to this package.
Definition BarcodeFormat.h:98
Barcode CreateBarcodeFromBytes(const void *data, int size, const CreatorOptions &options)
Generate Barcode from raw binary data.