UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.Interfaces.IText.AText Class Reference

Base class for AText. More...

Inheritance diagram for LabelMaker.Interfaces.IText.AText:
LabelMaker.Interfaces.IText.IText LabelMaker.Interfaces.IText.ITextSettings LabelMaker.Interfaces.IFont.IFont LabelMaker.Interfaces.IFont.IFontStyle LabelMaker.Interfaces.IFont.IFontSizeUnits LabelMaker.Interfaces.ISettings.IRotation LabelMaker.PGL.Text.Text LabelMaker.TSPL.Text.Text

Public Member Functions

 __init__ (self, Optional[ITextItem] text_item=None)
 Initializes a text object with optional text item.
 
str __str__ (self)
 Returns a string representation of the text object.
 
str to_string_with_print_plane (self, Optional[object] print_plane)
 Converts the text object to a string with an optional print plane.
 

Additional Inherited Members

- Static Public Attributes inherited from LabelMaker.Interfaces.IText.IText
List text [ITextItem]
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IText.ITextSettings
IRuler ruler
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IFont.IFont
str font_name
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IFont.IFontStyle
FontStyleEnum font_style
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IFont.IFontSizeUnits
FontSizeUnitsEnum font_size_units
 
- Static Public Attributes inherited from LabelMaker.Interfaces.ISettings.IRotation
RotateEnum rotation
 

Detailed Description

Base class for AText.

This class provides a base implementation for text handling, with properties for text items, font settings, alignment, and rotation.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.Interfaces.IText.AText.__init__ ( self,
Optional[ITextItem] text_item = None )

Initializes a text object with optional text item.

Parameters
text_itemAn optional initial text item to add to the text object.

Reimplemented in LabelMaker.PGL.Text.Text, and LabelMaker.TSPL.Text.Text.

Member Function Documentation

◆ __str__()

str LabelMaker.Interfaces.IText.AText.__str__ ( self)

Returns a string representation of the text object.

Reimplemented from LabelMaker.Interfaces.IText.IText.

Reimplemented in LabelMaker.PGL.Text.Text, and LabelMaker.TSPL.Text.Text.

◆ to_string_with_print_plane()

str LabelMaker.Interfaces.IText.AText.to_string_with_print_plane ( self,
Optional[object] print_plane )

Converts the text object to a string with an optional print plane.

Parameters
print_planeAn optional print plane object.
Returns
A string representation of the text object with the print plane.

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