A class for TextItem, inheriting from ATextItem.
More...
|
| | __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.
|
| |
| | __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.
|
| |
A class for TextItem, inheriting from ATextItem.
This class extends ATextItem to provide additional functionality for creating text items with various properties.
◆ __init__()
| LabelMaker.Interfaces.IText.TextItem.__init__ |
( |
| self, |
|
|
IPoint | start, |
|
|
str | data ) |
Initializes a TextItem with a starting point and data.
- Parameters
-
| start | The starting point for the text item. |
| data | The text content. |
◆ 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_start | The x-coordinate of the starting point. |
| y_start | The y-coordinate of the starting point. |
| data | The 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_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. |
- 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
-
| start | The starting point for the text item. |
| font_size | The font size for the text item. |
| data | The text content. |
- Returns
- A TextItem instance with the specified font size.
The documentation for this class was generated from the following file:
- /Users/bob_huang/Documents/Project/UniPRTSDK_python/LabelMaker/Interfaces/IText.py