A class for TextItem, inheriting from ATextItem. More...
Public Member Functions | |
__init__ (self, IPoint start, str data) | |
Initializes a TextItem with a starting point and data. | |
'TextItem' | with_font_size (cls, IPoint start, IFontSize font_size, str data) |
Creates a TextItem with a specified font size. | |
'TextItem' | with_coordinates (cls, float x_start, float y_start, str data) |
Creates a TextItem with specified coordinates. | |
'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. | |
![]() | |
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 | |
![]() | |
start | |
data | |
![]() | |
IPoint | start |
str | data |
![]() | |
_font_size | |
A class for TextItem, inheriting from ATextItem.
This class extends ATextItem to provide additional functionality for creating text items with various properties.
LabelMaker.Interfaces.IText.TextItem.__init__ | ( | self, | |
IPoint | start, | ||
str | data ) |
Initializes a TextItem with a starting point and data.
start | The starting point for the text item. |
data | The text content. |
Reimplemented from LabelMaker.Interfaces.IText.ATextItem.
'TextItem' LabelMaker.Interfaces.IText.TextItem.with_coordinates | ( | cls, | |
float | x_start, | ||
float | y_start, | ||
str | data ) |
Creates a TextItem with specified coordinates.
x_start | The x-coordinate of the starting point. |
y_start | The y-coordinate of the starting point. |
data | The text content. |
'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.
x_start | The x-coordinate of the starting point. |
y_start | The y-coordinate of the starting point. |
size_x | The width of the font size. |
size_y | The height of the font size. |
data | The text content. |
'TextItem' LabelMaker.Interfaces.IText.TextItem.with_font_size | ( | cls, | |
IPoint | start, | ||
IFontSize | font_size, | ||
str | data ) |
Creates a TextItem with a specified font size.
start | The starting point for the text item. |
font_size | The font size for the text item. |
data | The text content. |