UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.PGL.Barcode1D.Barcode1D Class Reference

Base class for handling 1D barcodes. More...

Inheritance diagram for LabelMaker.PGL.Barcode1D.Barcode1D:
LabelMaker.Interfaces.IBarcode1D.ABarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties LabelMaker.Interfaces.ISettings.IRotation LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D

Public Member Functions

 __init__ (self, Optional[IBarcodeItem] barcode=None)
 Initializes a new instance of the Barcode1D class with the specified barcode item.
 
str __str__ (self)
 Returns a string that can be sent to the printer.
 

Additional Inherited Members

- Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.ABarcode1D
 barcodes
 
 barcode_type
 
 ruler
 
 bar_widths
 
 print_human_readable
 
 rotation
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1D
List barcodes [IBarcodeItem]
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties
IRuler ruler
 
IBarWidths bar_widths
 
bool print_human_readable
 
- Static Public Attributes inherited from LabelMaker.Interfaces.ISettings.IRotation
RotateEnum rotation
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D
BarcodeTypeEnum1D barcode_type
 

Detailed Description

Base class for handling 1D barcodes.

This class provides functionality for creating and managing 1D barcodes, including calculating magnification and formatting barcode data for printing.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.PGL.Barcode1D.Barcode1D.__init__ ( self,
Optional[IBarcodeItem] barcode = None )

Initializes a new instance of the Barcode1D class with the specified barcode item.

Parameters
barcodeThe barcode item to be used for initialization.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.

Member Function Documentation

◆ __str__()

str LabelMaker.PGL.Barcode1D.Barcode1D.__str__ ( self)

Returns a string that can be sent to the printer.

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

Returns
A string description of the Barcode1D instance.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.


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