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

A class for TextItem, inheriting from ATextItem. More...

Inheritance diagram for LabelMaker.Interfaces.IText.TextItem:
LabelMaker.Interfaces.IText.ATextItem LabelMaker.Interfaces.IText.ITextItem

Public Member Functions

 __init__ (self, IPoint start, str data)
 Initializes a TextItem with a starting point and data.
 
'TextItemwith_font_size (cls, IPoint start, IFontSize font_size, str data)
 Creates a TextItem with a specified font size.
 
'TextItemwith_coordinates (cls, float x_start, float y_start, str data)
 Creates a TextItem with specified coordinates.
 
'TextItemwith_coordinates_and_size (cls, float x_start, float y_start, float size_x, float size_y, str data)
 Creates a TextItem with specified coordinates and font size.
 
- Public Member Functions inherited from LabelMaker.Interfaces.IText.ATextItem
IFontSize font_size (self)
 Gets the font size of the text item.
 
 font_size (self, IFontSize font_size)
 Sets the font size of the text item.
 

Additional Inherited Members

- Public Attributes inherited from LabelMaker.Interfaces.IText.ATextItem
 start
 
 data
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IText.ITextItem
IPoint start
 
str data
 
- Protected Attributes inherited from LabelMaker.Interfaces.IText.ATextItem
 _font_size
 

Detailed Description

A class for TextItem, inheriting from ATextItem.

This class extends ATextItem to provide additional functionality for creating text items with various properties.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.Interfaces.IText.TextItem.__init__ ( self,
IPoint start,
str data )

Initializes a TextItem with a starting point and data.

Parameters
startThe starting point for the text item.
dataThe text content.

Reimplemented from LabelMaker.Interfaces.IText.ATextItem.

Member Function Documentation

◆ with_coordinates()

'TextItem' LabelMaker.Interfaces.IText.TextItem.with_coordinates ( cls,
float x_start,
float y_start,
str data )

Creates a TextItem with specified coordinates.

Parameters
x_startThe x-coordinate of the starting point.
y_startThe y-coordinate of the starting point.
dataThe text content.
Returns
A TextItem instance with the specified coordinates.

◆ with_coordinates_and_size()

'TextItem' LabelMaker.Interfaces.IText.TextItem.with_coordinates_and_size ( cls,
float x_start,
float y_start,
float size_x,
float size_y,
str data )

Creates a TextItem with specified coordinates and font size.

Parameters
x_startThe x-coordinate of the starting point.
y_startThe y-coordinate of the starting point.
size_xThe width of the font size.
size_yThe height of the font size.
dataThe text content.
Returns
A TextItem instance with the specified coordinates and font size.

◆ with_font_size()

'TextItem' LabelMaker.Interfaces.IText.TextItem.with_font_size ( cls,
IPoint start,
IFontSize font_size,
str data )

Creates a TextItem with a specified font size.

Parameters
startThe starting point for the text item.
font_sizeThe font size for the text item.
dataThe text content.
Returns
A TextItem instance with the specified font size.

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