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

Base class for ATextItem. More...

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

Public Member Functions

 __init__ (self, IPoint start, str data)
 Initializes a text item with a starting point and data.
 
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.
 

Public Attributes

 start
 
 data
 

Protected Attributes

 _font_size
 

Additional Inherited Members

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

Detailed Description

Base class for ATextItem.

This class provides a basic implementation for text items, with properties for position and data.

Constructor & Destructor Documentation

◆ __init__()

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

Initializes a text item with a starting point and data.

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

Reimplemented in LabelMaker.Interfaces.IText.TextItem.

Member Function Documentation

◆ font_size() [1/2]

IFontSize LabelMaker.Interfaces.IText.ATextItem.font_size ( self)

Gets the font size of the text item.

Returns
The font size object.

Reimplemented from LabelMaker.Interfaces.IText.ITextItem.

◆ font_size() [2/2]

LabelMaker.Interfaces.IText.ATextItem.font_size ( self,
IFontSize font_size )

Sets the font size of the text item.

Parameters
font_sizeThe font size object to set.

Reimplemented from LabelMaker.Interfaces.IText.ITextItem.

Member Data Documentation

◆ _font_size

LabelMaker.Interfaces.IText.ATextItem._font_size
protected

◆ data

LabelMaker.Interfaces.IText.ATextItem.data

◆ start

LabelMaker.Interfaces.IText.ATextItem.start

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