QREncodeParams Class Documentation
classQREncodeParamsNamespace:datalogics_interface
Detailed Description
Used to control how the QR code is created.
Uses types
Constructor & Destructor Documentation
QREncodeParams
QREncodeParams(const std::string &text, doublex, doubley, doublewidth, doubleheight, QRErrorCorrectionLevelerror_level, unsigned intquiet_zone_size, const QRColor &code_color, const QRColor &background_color)Parameters
text: const std::string &The text string to encode in the QR code.
x: doubleThe X coordinate of the lower-left corner of the QR code on the page, in user space units.
y: doubleThe Y coordinate of the lower-left corner of the QR code on the page, in user space units.
width: doubleThe width of the QR code, in user space units.
height: doubleThe height of the QR code, in user space units.
error_level: QRErrorCorrectionLevelThe error correction level for the QR code.
quiet_zone_size: unsigned intThe size of the quiet zone (margin) around the QR code, in modules.
code_color: const QRColor &The color of the QR code modules (the dark elements).
background_color: const QRColor &The color of the background behind the QR code modules.
Create a new QREncodeParams object using the specified values.
QREncodeParams
QREncodeParams(QREncodeParams &&)Parameters
~QREncodeParams
~QREncodeParams()Member Function Documentation
get_background_color
QRColorget_background_color()Returns:
QRColorGet the color of the background behind the QR code modules.
get_code_color
QRColorget_code_color()Returns:
QRColorGet the color of the QR code modules (the dark elements).
get_error_correction_level
QRErrorCorrectionLevelget_error_correction_level()Returns:
QRErrorCorrectionLevelGet the error correction level of the QR code.
get_height
doubleget_height()Returns:
doubleGet the height of the QR code, in user space units.
get_quiet_zone_size
unsigned intget_quiet_zone_size()Returns:
unsigned intGet the quiet zone size (margin around the QR code), in modules.
get_text
std::stringget_text()Returns:
std::stringGet the text string to be encoded in the QR code.
get_width
doubleget_width()Returns:
doubleGet the width of the QR code, in user space units.
get_x
doubleget_x()Returns:
doubleGet the X coordinate of the lower-left corner of the QR code on the page, in user space units.
get_y
doubleget_y()Returns:
doubleGet the Y coordinate of the lower-left corner of the QR code on the page, in user space units.
operator=
QREncodeParams &operator=(QREncodeParams &&)Parameters
Returns:
QREncodeParams &set_background_color
voidset_background_color(const QRColor &color)Parameters
color: const QRColor &the color of the background behind the QR code modules
Returns:
voidSet the color of the background behind the QR code modules.
set_code_color
voidset_code_color(const QRColor &color)Parameters
color: const QRColor &the color of the QR code modules (the dark elements)
Returns:
voidSet the color of the QR code modules (the dark elements).
set_error_correction_level
voidset_error_correction_level(QRErrorCorrectionLevellevel)Parameters
level: QRErrorCorrectionLevelthe error correction level of the QR code
Returns:
voidSet the error correction level of the QR code.
set_height
voidset_height(doubleheight)Parameters
height: doublethe height of the QR code, in user space units
Returns:
voidSet the height of the QR code, in user space units.
set_quiet_zone_size
voidset_quiet_zone_size(unsigned intsize)Parameters
size: unsigned intthe quiet zone size (margin around the QR code), in modules
Returns:
voidSet the quiet zone size (margin around the QR code), in modules.
set_text
voidset_text(const std::string &text)Parameters
text: const std::string &the text string to be encoded in the QR code
Returns:
voidSet the text string to be encoded in the QR code.
set_width
voidset_width(doublewidth)Parameters
width: doublethe width of the QR code, in user space units
Returns:
voidSet the width of the QR code, in user space units.
set_x
voidset_x(doublex)Parameters
x: doublethe X coordinate of the lower-left corner of the QR code on the page, in user space units
Returns:
voidSet the X coordinate of the lower-left corner of the QR code on the page, in user space units.
set_y
voidset_y(doubley)Parameters
y: doublethe Y coordinate of the lower-left corner of the QR code on the page, in user space units
Returns:
voidSet the Y coordinate of the lower-left corner of the QR code on the page, in user space units.