Unigine::Plugins::IG::SymbolText Class
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to- Sim
SDK edition to use it.
You should upgrade to
Header: | #include <plugins/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 ( int font_id ) #
Sets the font using its identifier stored in the IG configuration file (ig_config.xml).Arguments
- int font_id - Font identifier.
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:
13.12.2021
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter