A class representing a label that can be converted to printer language syntax. More...
#include <PglLabel.h>
Instance Methods | |
(instancetype) | - initWithName: |
Initializes a new instance of the PglLabel class with the specified name. | |
(void) | - addObject: |
Adds an object that can be converted to printer language syntax to the label. | |
(void) | - addRawContent: |
Adds raw content to the label for cases where custom content needs to be added. | |
(NSString *) | - description |
Returns a string that can be sent to the printer. | |
Properties | |
PglForm * | form |
The form associated with the label. | |
PglScale * | scale |
The scale associated with the label. | |
NSString * | name |
The name of the label. | |
A class representing a label that can be converted to printer language syntax.
This class provides functionality for managing the form, scale, and name of a label, as well as adding objects and raw content to the label.
- (void) addObject: | (id) | addObject |
Adds an object that can be converted to printer language syntax to the label.
addObject | The object to be added to the label. |
- (void) addRawContent: | (NSString *) | rawContent |
Adds raw content to the label for cases where custom content needs to be added.
Adding raw content allows the addition of printer language commands or other features that may not be available. No formatting of the content is done; the caller is responsible for making sure the content follows printer language syntax.
rawContent | The raw content to be added to the label. |
- (NSString *) description |
Returns a string that can be sent to the printer.
- (instancetype) initWithName: | (NSString *) | name |
|
readwritenonatomicstrong |
The form associated with the label.
|
readwritenonatomiccopy |
The name of the label.
|
readwritenonatomicstrong |
The scale associated with the label.