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

A class representing a label that can be converted to printer language syntax. More...

#include <PglLabel.h>

Inheritance diagram for PglLabel:

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.
 

Detailed Description

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.

Method Documentation

◆ addObject:

- (void) addObject: (id) addObject

Adds an object that can be converted to printer language syntax to the label.

Parameters
addObjectThe object to be added to the label.

◆ addRawContent:

- (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.

Parameters
rawContentThe raw content to be added to the label.

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

Returns
A string description of the PglLabel instance.

◆ initWithName:

- (instancetype) initWithName: (NSString *) name

Initializes a new instance of the PglLabel class with the specified name.

Parameters
nameThe name of the label.
Returns
A new instance of PglLabel.

Property Documentation

◆ form

- (PglForm*) form
readwritenonatomicstrong

The form associated with the label.

◆ name

- (NSString*) name
readwritenonatomiccopy

The name of the label.

◆ scale

- (PglScale*) scale
readwritenonatomicstrong

The scale associated with the label.


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