All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
text_block_properties.h File Reference

Variables

static PropertyType< float > FontSizeProperty
 FontSize property. More...
 
static PropertyType< ResourceID > FontMaterialProperty
 FontMaterial property. More...
 
static PropertyType< ColorRGBA > FontColorProperty
 FontColor property. More...
 
static PropertyType
< TextBlockConcept::TextHorizontalAlignment > 
TextHorizontalAlignmentProperty
 TextHorizontalAlignment property. More...
 
static PropertyType
< TextBlockConcept::TextVerticalAlignment > 
TextVerticalAlignmentProperty
 TextVerticalAlignment property. More...
 
static PropertyType< float > LineSpacingProperty
 LineSpacing property. More...
 
static PropertyType< float > CharacterSpacingProperty
 CharacterSpacing property. More...
 
static PropertyType< string > OverflowProperty
 Overflow property. More...
 
static PropertyType< string > TextProperty
 Text property. More...
 
static PropertyType< bool > WordWrapProperty
 WordWrap property. More...
 
static PropertyType< bool > ConstrainContentHeightProperty
 ConstrainContentHeight property. More...
 

Variable Documentation

PropertyType<float> FontSizeProperty
static

FontSize property.

Defines the font size in device independent pixels. The default value is 36.0f.

See also
setFontSize(), getFontSize()
PropertyType<ResourceID> FontMaterialProperty
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 ResourceID().

See also
setFontMaterialResourceID(), getFontMaterialResourceID()
PropertyType<ColorRGBA> FontColorProperty
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).

See also
setFontColor(), getFontColor()
PropertyType<TextBlockConcept::TextHorizontalAlignment> TextHorizontalAlignmentProperty
static

TextHorizontalAlignment property.

Defines the horizontal alignment of the text. The default value is TextBlockConcept::TextHorizontalAlignmentLeft.

See also
setTextHorizontalAlignment(), getTextHorizontalAlignment()
PropertyType<TextBlockConcept::TextVerticalAlignment> TextVerticalAlignmentProperty
static

TextVerticalAlignment property.

Defines the vertical alignment of the text. The default value is TextBlockConcept::TextVerticalAlignmentTop.

See also
setTextVerticalAlignment(), getTextVerticalAlignment()
PropertyType<float> LineSpacingProperty
static

LineSpacing property.

Defines the line spacing in multiples of the normal line height of the selected font. The default value is 1.0f.

See also
setLineSpacing(), getLineSpacing()
PropertyType<float> CharacterSpacingProperty
static

CharacterSpacing property.

Defines the character spacing in device independent pixels. The default value is 0.0f.

See also
setCharacterSpacing(), getCharacterSpacing()
PropertyType<string> OverflowProperty
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 "".

See also
setOverflow(), getOverflow()
PropertyType<string> TextProperty
static

Text property.

Defines the text that the TextBlock renders. The default value is "<Text>".

See also
setText(), getText()
PropertyType<bool> WordWrapProperty
static

WordWrap property.

When enabled, long text lines that don't fit to the layout wrap to multiple lines. The default value is true.

See also
setWordWrap(), isWordWrap()
PropertyType<bool> ConstrainContentHeightProperty
static

ConstrainContentHeight property.

When enabled, last lines that don't fit to the layout are cut out. The default value is true.

See also
setConstrainContentHeight(), isConstrainContentHeight()