Unigine::Plugins::IG::SymbolText Class
Header: | #include <plugins/Unigine/IG/UnigineIG.h> |
SymbolText Class
Enums
Orientation#
AlignHorizontal#
Name | Description |
---|---|
LEFT = 0 | Align text to the left. |
CENTER = 1 | Align text to the center. |
RIGHT = 2 | Align text to the right. |
AlignVertical#
Name | Description |
---|---|
TOP = 0 | Align text to the top. |
CENTER = 1 | Align text to the center. |
BOTTOM = 2 | Align text to bottom. |
Members
void setText ( const char * text ) #
Sets the text to be displayed.Arguments
- const char * text - Text to be displayed.
void setFont ( const String & path ) #
Sets the font stored in the specified file.Arguments
- const String & path - Path to a font file.
void setFontSize ( float font_size ) #
Sets the font size.Arguments
- float font_size - Font size.
void setAlign ( SymbolText.AlignHorizontal align_horizontal, SymbolText.AlignVertical align_vertical ) #
Sets horizontal and vertical alignment for the text to be displayed.Arguments
- SymbolText.AlignHorizontal align_horizontal - Horizontal alignment for the text.
- SymbolText.AlignVertical align_vertical - Vertical alignment for the text.
void setOrientation ( SymbolText.Orientation orientation ) #
Sets orientation for the text to be displayed (horizontal: left-to-right / right-to-left or vertical: bottom-to-top / top-to-bottom).Arguments
- SymbolText.Orientation orientation - Text orientation to be set.
Last update:
2024-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)