UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.PGL.QRBarcode.QRBarcode Class Reference

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

Inheritance diagram for LabelMaker.PGL.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, IPoint start, data="", Optional[List[List[Union[int, str]]]] data_manually_encoded=None)
 Initializes a new instance of the QRBarcode class.
 
str __str__ (self)
 Returns a string that can be sent to the printer.
 
- Public Member Functions inherited from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
 __init__ (self, IPoint start, Optional[str] data=None, Optional[List[List[str]]] manually_encoded_data=None)
 Initializes a QR Code with a starting point and optional data.
 
- Public Member Functions inherited from LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE)
 
str __str__ (self)
 
- Public Member Functions inherited from LabelMaker.Interfaces.IBarcode2D.IBarcode2D
str __str__ (self)
 

Additional Inherited Members

- Public Attributes inherited from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
 mask = QRCodeMaskEnum.MASK0
 
 model = QRCodeModelEnum.MODEL2
 
 error_correction = QRCodeErrorCorrectionEnum.CORRECTION15
 
 cell_size = Defaults.cell_size()
 
- Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start = start
 
 data = data
 
 ruler = ruler or Defaults.ruler()
 
 rotation = rotation
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBcdQRCode.AQRBarcode
List data_manually_encoded [List[str]]
 

Detailed Description

A class representing a QR code barcode.

This class inherits from AQRBarcode and provides functionality for initializing, configuring, and describing QR code barcodes. The QR code barcode can be configured with automatic or manual encoding modes and different error correction levels.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.PGL.QRBarcode.QRBarcode.__init__ ( self,
IPoint start,
data = "",
Optional[List[List[Union[int, str]]]] data_manually_encoded = None )

Initializes a new instance of the QRBarcode class.

This constructor sets up a new QRBarcode object using the provided start point, data, and optional manually encoded data. The data represents the information to be encoded within the QR code barcode.

Parameters
startThe starting point of the QR code.
dataThe data to be encoded in the QR code.
data_manually_encodedAn array of manually encoded data points for the QR code.

Member Function Documentation

◆ __str__()

str LabelMaker.PGL.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 PGL.

Returns
A string description of the QRBarcode instance.

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