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

A class representing a text object. More...

#include <_PglText.h>

Inheritance diagram for _PglText:
AText <IText> <ITextSettings> <IFont> <IFontSizeUnits> <IAlignment> <IRotation>

Instance Methods

(instancetype) - init
 Initializes a new instance of the _PglText class.
 
(instancetype) - initWithText:
 Initializes a new instance of the _PglText class with the specified text item.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 
- Instance Methods inherited from AText
(instancetype) - initWithTextItem:
 

Additional Inherited Members

- Properties inherited from AText
NSMutableArray< id< ITextItem > > * text
 
id< IRulerruler
 
NSString * fontName
 
FontStyleEnum fontStyle
 
FontSizeUnitsEnum fontSizeUnits
 
AlignEnum alignment
 
RotateEnum rotation
 
- Properties inherited from <IText>
NSArray< id< ITextItem > > * text
 List of text items that use the same text settings.
 
- Properties inherited from <ITextSettings>
id< IRulerruler
 Ruler to use for text positioning and font size if using ruler for font scaling/resizing.
 
- Properties inherited from <IFont>
NSString * fontName
 The name of the font to use.
 
- Properties inherited from <IFontSizeUnits>
FontSizeUnitsEnum fontSizeUnits
 Font size units for character sizing.
 
- Properties inherited from <IAlignment>
AlignEnum alignment
 
- Properties inherited from <IRotation>
RotateEnum rotation
 

Detailed Description

A class representing a text object.

This class inherits from AText and provides functionality for initializing and describing text objects.

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

This method generates a string representation of the _PglText instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing.

Returns
A string description of the _PglText instance.

Reimplemented from AText.

◆ init

- (instancetype) init

Initializes a new instance of the _PglText class.

Returns
A new instance of _PglText.

◆ initWithText:

- (instancetype) initWithText: (id< ITextItem >) text

Initializes a new instance of the _PglText class with the specified text item.

Parameters
textList of text items that use the same text settings.
Returns
A new instance of _PglText.

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