表示 TSPL 中 QR 码条形码的类。 更多...
#include <QRBarcode.h>
构造函数 | |
| (instancetype) | - init |
| 初始化 QRBarcode 类的新实例。 | |
| (instancetype) | - initWithStart:data: |
| 使用指定的起点和数据初始化 QRBarcode 类的新实例。 | |
| (instancetype) | - initWithStart:manuallyEncodedData: |
| 使用指定的起点和手动编码数据初始化 QRBarcode 类的新实例。 | |
| (NSString *) | - description |
| 返回可以发送到印表机的字符串。 | |
构造函数 继承自 ABarcode2D | |
| (NSString *) | - NS_REQUIRES_SUPER |
额外继承的成员函数 | |
属性 继承自 AQRBarcode | |
| id< IPoint > | start |
| 二维码的起始点。 | |
| NSString * | data |
| 自动编码的数据。手动编码的 DataManuallyEncoded 优先于自动编码。 | |
| NSArray< NSArray * > * | dataManuallyEncoded |
| 手动编码的数据。手动编码优先于自动编码。 | |
| QRCodeMaskEnum | mask |
| 用于生成二维码的掩码。 | |
| QRCodeModelEnum | model |
| 二维码的模型。 | |
| QRCodeErrorCorrectionEnum | errorCorrection |
| 二维码的错误更正级别。 | |
| id< ICellSquare > | cellSize |
| 构成二维码的单元格的大小。 | |
属性 继承自 ABarcode2D | |
| id< IRuler > | ruler |
| id< IPoint > | start |
| NSString * | data |
| RotateEnum | rotation |
属性 继承自 <IBarcodeItem_2D> | |
| id< IPoint > | start |
| 条码开始的位置。 | |
| NSString * | data |
| 条码的内容。 | |
属性 继承自 <IPositionRuler> | |
| id< IRuler > | ruler |
属性 继承自 <IRotation> | |
| RotateEnum | rotation |
属性 继承自 <ISquareCell> | |
| id< ICellSquare > | cellSize |
| 条码单元大小。较大的单元大小会使条码占用更大的面积。 | |
表示 TSPL 中 QR 码条形码的类。
该类继承自 AQRBarcode,提供了在 TSPL 中初始化和描述 QR 码条形码的功能。
| - (NSString *) description |
返回可以发送到印表机的字符串。
该方法生成 QRBarcode 实例的字符串表示形式, 格式化并准备好发送到印表机。字符串包括在 TSPL 中打印所需的所有命令和数据。
重载 <IBarcode2D> .
| - (instancetype) init |
| - (instancetype) initWithStart: | (id< IPoint >) | start | |
| data: | (NSString *) | data |
使用指定的起点和数据初始化 QRBarcode 类的新实例。
| start | QR 码的起始点。 |
| data | 要在 QR 码中编码的数据。 |
重载 AQRBarcode .
| - (instancetype) initWithStart: | (id< IPoint >) | start | |
| manuallyEncodedData: | (NSArray< NSArray * > *) | dataManuallyEncoded |
使用指定的起点和手动编码数据初始化 QRBarcode 类的新实例。
| start | QR 码的起始点。 |
| dataManuallyEncoded | QR 码的手动编码数据点数组。 |
重载 AQRBarcode .