TextConcept is base class for nodes that implement text rendering. More...
#include <kanzi/ui/node/concept/text_block.hpp>
Public Types | |
enum | TextHorizontalAlignment { TextHorizontalAlignmentLeft, TextHorizontalAlignmentRight, TextHorizontalAlignmentCenter } |
Horizontal alignment options for text layout. More... | |
enum | TextVerticalAlignment { TextVerticalAlignmentTop, TextVerticalAlignmentBaseline, TextVerticalAlignmentCenter, TextVerticalAlignmentBottom } |
Vertical alignment options for text layout. More... | |
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
TextConcept is base class for nodes that implement text rendering.
Vertical alignment options for text layout.
|
static |
|
static |
FontColor property.
Defines the text color for the default font material and for the materials with a fragment shader that use the FontColor uniform. The default value is ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f).
|
static |
FontSize property.
Defines the font size in device independent pixels. The default value is 36.0f.
|
static |
FontMaterial property.
Defines the resource ID of the font material resource. The material's shader needs to include GlyphTexture uniform which is automatically filled with glyph data. The default value is ResourceSharedPtr().
|
static |
TextHorizontalAlignment property.
Defines the horizontal alignment of the text. The default value is TextBlockConcept::TextHorizontalAlignmentLeft.
|
static |
TextVerticalAlignment property.
Defines the vertical alignment of the text. The default value is TextBlockConcept::TextVerticalAlignmentTop.
|
static |
LineSpacing property.
Defines the line spacing in multiples of the normal line height of the selected font. The default value is 1.0f.
|
static |
CharacterSpacing property.
Defines the character spacing in device independent pixels. The default value is 0.0f.
|
static |
Overflow property.
Defines the characters that represent the clipped text when the text string to be rendered is too long to fit in the node. The default value is "...".
|
static |
Text property.
Defines the text that the TextBlock renders. The default value is "Text".
|
static |
WordWrap property.
When enabled, long text lines that don't fit to the layout wrap to multiple lines. The default value is true.
|
static |
ConstrainContentHeight property.
When enabled, last lines that don't fit to the layout are cut out. The default value is true.
|
static |
FixedCharacterWidth property.
The default value is -1.0f.
|
static |
HorizontalPadding property.
The default value is Vector2(0.0f, 0.0f).
|
static |
VerticalPadding property.
The default value is Vector2(0.0f, 0.0f).