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

A class representing a Data Matrix barcode for TSPL. More...

#include <DataMatrixBarcode.h>

Inheritance diagram for DataMatrixBarcode:
ADataMatrix ABarcode2D <ISquareCell> <IBarcode2D> <IBarcodeItem_2D> <IPositionRuler> <IRotation>

Instance Methods

(instancetype) - init
 Initializes a new instance of the DataMatrixBarcode class.
 
(instancetype) - initWithStart:data:
 Initializes a new instance of the DataMatrixBarcode class with the specified start point and data.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 
- Instance Methods inherited from ADataMatrix
(NSString *) - ctrlChar:
 Gets a string that represents non-printable control character in 0-31 range.
 
- Instance Methods inherited from ABarcode2D
(NSString *) - NS_REQUIRES_SUPER
 

Additional Inherited Members

- Properties inherited from ADataMatrix
id< IPointstart
 
NSString * data
 
char ctrlCharDelimiter
 
id< ICellSquarecellSize
 
BOOL rectangle
 Sets the shape for barcode to be rectangular shape, otherwise default square shape is used.
 
NSString * fnc1
 Get a string that represents the FNC1 character in order to include it within the barcode data.
 
NSValue * rowsCols
 Specify the number of cells in terms of rows and columns of the barcode if want to manually set the barcode matrix dimensions.
 
- Properties inherited from ABarcode2D
id< IRulerruler
 
id< IPointstart
 
NSString * data
 
RotateEnum rotation
 
- Properties inherited from <IBarcodeItem_2D>
id< IPointstart
 Position where barcode starts.
 
NSString * data
 The barcode content.
 
- Properties inherited from <IPositionRuler>
id< IRulerruler
 
- Properties inherited from <IRotation>
RotateEnum rotation
 
- Properties inherited from <ISquareCell>
id< ICellSquarecellSize
 Barcode cell size. Larger cell size results in barcodes that take up a larger area.
 

Detailed Description

A class representing a Data Matrix barcode for TSPL.

This class inherits from ADataMatrix and provides functionality for initializing and describing Data Matrix 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 DataMatrixBarcode 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 DataMatrixBarcode instance.

Reimplemented from <IBarcode2D>.

◆ init

- (instancetype) init

Initializes a new instance of the DataMatrixBarcode class.

Returns
A new instance of DataMatrixBarcode.

Reimplemented from ADataMatrix.

◆ initWithStart:data:

- (instancetype) initWithStart: (id< IPoint >) start
data: (NSString *) data 

Initializes a new instance of the DataMatrixBarcode class with the specified start point and data.

Parameters
startThe starting point of the barcode.
dataThe data to be encoded in the barcode.
Returns
A new instance of DataMatrixBarcode.

Reimplemented from ADataMatrix.


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