UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.TSPL.QRBarcode.QRBarcode Class Reference

A class representing a QR code barcode for TSPL. More...

Inheritance diagram for LabelMaker.TSPL.QRBarcode.QRBarcode:
LabelMaker.Interfaces.IBcdQRCode.AQRBarcode LabelMaker.Interfaces.IBarcode2D.ABarcode2D LabelMaker.Interfaces.IBarcode2D.ISquareCell LabelMaker.Interfaces.IBarcode2D.IBarcode2D LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D LabelMaker.Interfaces.IBarcode2D.IPositionRuler LabelMaker.Interfaces.ISettings.IRotation

Public Member Functions

 __init__ (self, Optional[Points] start=None, Optional[str] data=None, Optional[List[List[Union[QRCodeManualEncodingEnum, str]]]] manually_encoded_data=None)
 Initializes a new instance of the QRBarcode class.
 
str __str__ (self)
 Returns a string that can be sent to the printer.
 

Public Attributes

 start
 
 data
 
 data_manually_encoded
 
- Public Attributes inherited from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
 data_manually_encoded
 
 mask
 
 model
 
 error_correction
 
 cell_size
 
- Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start
 
 data
 
 ruler
 
 rotation
 

Additional Inherited Members

- Static Public Attributes inherited from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
IPoint start
 
str data
 
List data_manually_encoded [List[str]]
 
QRCodeMaskEnum mask
 
QRCodeModelEnum model
 
QRCodeErrorCorrectionEnum error_correction
 
ICellSquare cell_size
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D
IPoint start
 
str data
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.IPositionRuler
IRuler ruler
 
- Static Public Attributes inherited from LabelMaker.Interfaces.ISettings.IRotation
RotateEnum rotation
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.ISquareCell
ICellSquare cell_size
 

Detailed Description

A class representing a QR code barcode for TSPL.

This class inherits from AQRBarcode and provides functionality for initializing and describing QR code barcodes in TSPL.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.TSPL.QRBarcode.QRBarcode.__init__ ( self,
Optional[Points] start = None,
Optional[str] data = None,
Optional[ List[List[Union[QRCodeManualEncodingEnum, str]]] ] manually_encoded_data = None )

Initializes a new instance of the QRBarcode class.

Parameters
startThe starting point of the QR code.
dataThe data to be encoded in the QR code.
manually_encoded_dataAn array of manually encoded data points for the QR code.
Returns
A new instance of QRBarcode.

Reimplemented from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode.

Member Function Documentation

◆ __str__()

str LabelMaker.TSPL.QRBarcode.QRBarcode.__str__ ( self)

Returns a string that can be sent to the printer.

This method generates a string representation of the QRBarcode instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.

Returns
A string description of the QRBarcode instance.

Reimplemented from LabelMaker.Interfaces.IBarcode2D.ABarcode2D.

Member Data Documentation

◆ data

LabelMaker.TSPL.QRBarcode.QRBarcode.data

◆ data_manually_encoded

LabelMaker.TSPL.QRBarcode.QRBarcode.data_manually_encoded

◆ start

LabelMaker.TSPL.QRBarcode.QRBarcode.start

The documentation for this class was generated from the following file: