UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
Barcode_1D Class Reference

A class representing a 1D barcode for TSPL. More...

#include <Barcode_1D.h>

Inheritance diagram for Barcode_1D:
ABarcode1D <IBarcode1D> <IBarcode_1D_Properties> <IRotation> <IBarcodeType1D>

Instance Methods

(instancetype) - init
 Initializes a new instance of the Barcode_1D class.
 
(instancetype) - initWithBarcodeItem:
 Initializes a new instance of the Barcode_1D class with the specified barcode item.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 

Additional Inherited Members

- Properties inherited from ABarcode1D
NSMutableArray< id< IBarcodeItem > > * barcodes
 
BarcodeTypeEnum1D barcodeType
 
id< IRulerruler
 
id< IBarWidthsbarWidths
 
BOOL printHumanReadable
 
RotateEnum rotation
 
- Properties inherited from <IBarcode1D>
NSMutableArray< id< IBarcodeItem > > * barcodes
 An array of barcode items.
 
- Properties inherited from <IBarcode_1D_Properties>
id< IRulerruler
 Ruler to use for positioning and Height.
 
id< IBarWidthsbarWidths
 Barcode magnification. Width of Narrow/Wide bars.
 
BOOL printHumanReadable
 Prints the PDF human readable at bottom of barcode.
 
- Properties inherited from <IRotation>
RotateEnum rotation
 
- Properties inherited from <IBarcodeType1D>
BarcodeTypeEnum1D barcodeType
 

Detailed Description

A class representing a 1D barcode for TSPL.

This class inherits from ABarcode1D and provides functionality for initializing and describing 1D barcodes in TSPL.

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

This method generates a string representation of the Barcode_1D 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 Barcode_1D instance.

Reimplemented from <IBarcode1D>.

◆ init

- (instancetype) init

Initializes a new instance of the Barcode_1D class.

Returns
A new instance of Barcode_1D.

Reimplemented from ABarcode1D.

◆ initWithBarcodeItem:

- (instancetype) initWithBarcodeItem: (id< IBarcodeItem >) barcode

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

Parameters
barcodeThe barcode item to be used for initialization.
Returns
A new instance of Barcode_1D.

Reimplemented from ABarcode1D.


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