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

A class representing a text object for TSPL. More...

#include <_Text.h>

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

Instance Methods

(instancetype) - init
 Initializes a new instance of the _Text class.
 
(instancetype) - initWithTextItem:
 Initializes a new instance of the _Text class with the specified text item.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 

Properties

TSPLReferencePoint referencePoint
 The reference point for the text in TSPL.
 
BOOL reverse
 A flag indicating whether the text should be printed in reverse.
 
- 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 for TSPL.

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

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

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

Returns
A string description of the _Text instance.

Reimplemented from AText.

◆ init

- (instancetype) init

Initializes a new instance of the _Text class.

Returns
A new instance of _Text.

◆ initWithTextItem:

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

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

Parameters
textThe text item to be used for initialization.
Returns
A new instance of _Text.

Reimplemented from AText.

Property Documentation

◆ referencePoint

- (TSPLReferencePoint) referencePoint
readwritenonatomicassign

The reference point for the text in TSPL.

◆ reverse

- (BOOL) reverse
readwritenonatomicassign

A flag indicating whether the text should be printed in reverse.


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