UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
Label.h
1//
2// Label.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/16.
6//
7
8#ifndef Label_h
9#define Label_h
10
11#import <Foundation/Foundation.h>
12#import <UniPRT/ILabel.h>
13#import <UniPRT/TsplForm.h>
14#import <UniPRT/Scale.h>
15#import <UniPRT/Defaults.h>
16
42@interface Label : NSObject <ILabel>
43
54@property (nonatomic, strong) TsplForm *form;
55
66@property (nonatomic, strong) Scale *scale;
67
78@property (nonatomic, strong) NSString *name;
79
99- (instancetype)initWithName:(NSString *)name;
100
117- (void)addObject:(id)addObject;
118
144- (void)addRawContent:(NSString *)rawContent;
145
172- (NSString *)description;
173
190- (void)SetName:(NSString *)name;
191
192@end
193
194#endif /* Label_h */
A class representing a label for TSPL.
Definition Label.h:42
TsplForm * form
The form associated with the label.
Definition Label.h:54
NSString * description()
Returns a string that can be sent to the printer.
NSString * name
The name of the label.
Definition Label.h:78
Scale * scale
The scale associated with the label.
Definition Label.h:66
Definition Scale.h:19
Definition TsplForm.h:22
Label is the container for other objects that are printed.
Definition ILabel.h:29