TextConcept is the base class for the nodes that implement text rendering. More...
#include <kanzi/ui/node/concept/text_concept.hpp>
Classes | |
struct | TextFormatParameters |
Structure that holds the parameters that TextConceptImpl::prepareTextFormat() needs. More... | |
Public Member Functions | |
virtual | ~TextConcept ()=default |
Destructor. More... | |
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Attributes | |
Properties | |
static PropertyType< ColorRGBA > | FontColorProperty |
Sets the text color for the default font material and for the materials with a fragment shader that uses the FontColor uniform. More... | |
static PropertyType< ResourceSharedPtr > | FontMaterialProperty |
Sets the material whose shader is used to render the text in a text node. More... | |
static PropertyType< Vector2 > | HorizontalPaddingProperty |
Sets the padding spaces between the content and the left and right boundaries of a text node. More... | |
static PropertyType< bool > | RemoveSideBearingsProperty |
Sets the position of the leftmost characters of left-aligned text and rightmost characters of right-aligned text exactly within the boundary of the text node. More... | |
static PropertyType< string > | TextProperty |
Sets the text content that a text node renders. More... | |
static PropertyType< TextFormat::TextHorizontalAlignment > | TextHorizontalAlignmentProperty |
Sets the horizontal alignment of the text in a text node. More... | |
static PropertyType< TextFormat::TextVerticalAlignment > | TextVerticalAlignmentProperty |
Sets the vertical alignment of the text in a text node. More... | |
static PropertyType< Vector2 > | VerticalPaddingProperty |
Sets the padding spaces between the content and the top and bottom boundaries of a text node. More... | |
static PropertyType< string > | OverflowProperty |
Sets the characters that represent the truncated text when the text string to be rendered is too long to fit in a text node. More... | |
static PropertyType< bool > | HorizontalFitProperty |
Allows a Text Block to scale glyphs horizontally when the text string is too long to fit in that Text Block. More... | |
static PropertyType< Vector2 > | HorizontalFitScaleLimitsProperty |
Sets the scale range that the HorizontalFitProperty can use when it scales the text horizontally. More... | |
TextConcept is the base class for the nodes that implement text rendering.
This class defines the data and property types used to implement the text rendering nodes, such as TextBlock2D, TextBlock3D, TextBox2D, and TextBox3D.
|
virtualdefault |
Destructor.
|
static |
|
static |
Sets the text color for the default font material and for the materials with a fragment shader that uses the FontColor uniform.
The default value is sRGB ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f).
|
static |
Sets the material whose shader is used to render the text in a text node.
The shader must use the ContentTexture uniform which is automatically filled with the glyph data. The default value is ResourceSharedPtr().
|
static |
Sets the padding spaces between the content and the left and right boundaries of a text node.
The default value is Vector2(0.0f, 0.0f).
|
static |
Sets the position of the leftmost characters of left-aligned text and rightmost characters of right-aligned text exactly within the boundary of the text node.
The default value is false.
|
static |
Sets the text content that a text node renders.
The default value is "".
|
static |
Sets the horizontal alignment of the text in a text node.
The default value is TextFormat::TextHorizontalAlignmentLeft.
|
static |
Sets the vertical alignment of the text in a text node.
The default value is TextFormat::TextVerticalAlignmentTop.
|
static |
Sets the padding spaces between the content and the top and bottom boundaries of a text node.
The default value is Vector2(0.0f, 0.0f).
|
static |
Sets the characters that represent the truncated text when the text string to be rendered is too long to fit in a text node.
The default value is "...".
|
static |
Allows a Text Block to scale glyphs horizontally when the text string is too long to fit in that Text Block.
The default value is false.
|
static |
Sets the scale range that the HorizontalFitProperty can use when it scales the text horizontally.
The default value is Vector2(0.5f, 1.0f).