Prison
code128barcode.cpp
233 return currentSet == CodeSetUnknown ? CodeSetChange{CodeSetC, StartC} : CodeSetChange{CodeSetC, LatchC};
237 // this is a shortcut to prevent the below more extensive search from making this O(n²) in the common case
238 if ((currentSet == CodeSetA && isInCodeSetA(data.at(index))) || (currentSet == CodeSetB && isInCodeSetB(data.at(index)))) {
242 // we need to switch to A or B, select which one, and select whether to use start, shift or latch
Format_ARGB32
int size() const const
void fill(uint pixelValue)
QImage paintImage(const QSizeF &size) override
Doing the actual painting of the image.
Definition: code128barcode.cpp:47
Definition: abstractbarcode.h:19
const QColor & backgroundColor() const
Definition: abstractbarcode.cpp:176
char at(int i) const const
void setPixel(int x, int y, uint index_or_rgb)
bool isEmpty() const const
base class for barcode generators To add your own barcode generator, subclass this class and reimplem...
Definition: abstractbarcode.h:32
QByteArray byteArrayData() const
Binary data encoded in this barcode.
Definition: abstractbarcode.cpp:81
const QChar at(int position) const const
int size() const const
const QColor & foregroundColor() const
Definition: abstractbarcode.cpp:181
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:09:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:09:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.