Kanzi Engine API
kanzi::TextConcept::TextFormatParameters Struct Reference

Structure that holds the parameters that TextConceptImpl::prepareTextFormat() needs. More...

#include <kanzi/ui/node/concept/text_concept.hpp>

Public Attributes

bool hyphenationEnabled
 Whether to apply a hyphen at the end of a line to split a word that is too long to fit on a single line. More...
 
string overflowText
 The characters that represent the clipped text when the text string to be rendered is too long to fit in the node. More...
 
bool removeSideBearingsEnabled
 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...
 
float textFormatHeight
 The available text height. More...
 
float textFormatWidth
 The available text width. More...
 
TextFormat::TextHorizontalAlignment textHorizontalAlignment
 The horizontal alignment of the text. More...
 
TextFormat::TextVerticalAlignment textVerticalAlignment
 The vertical alignment of the text. More...
 
TextFormat::WhitespacePolicy whitespacePolicy
 The policy applied on trailing or leading whitespaces. More...
 
bool wordWrap
 Whether to break long text lines to multiple lines to make the text fit within the boundaries of the node. More...
 

Detailed Description

Structure that holds the parameters that TextConceptImpl::prepareTextFormat() needs.

Member Data Documentation

float kanzi::TextConcept::TextFormatParameters::textFormatWidth

The available text width.

float kanzi::TextConcept::TextFormatParameters::textFormatHeight

The available text height.

TextFormat::TextHorizontalAlignment kanzi::TextConcept::TextFormatParameters::textHorizontalAlignment

The horizontal alignment of the text.

TextFormat::TextVerticalAlignment kanzi::TextConcept::TextFormatParameters::textVerticalAlignment

The vertical alignment of the text.

TextFormat::WhitespacePolicy kanzi::TextConcept::TextFormatParameters::whitespacePolicy

The policy applied on trailing or leading whitespaces.

bool kanzi::TextConcept::TextFormatParameters::removeSideBearingsEnabled

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.

bool kanzi::TextConcept::TextFormatParameters::hyphenationEnabled

Whether to apply a hyphen at the end of a line to split a word that is too long to fit on a single line.

string kanzi::TextConcept::TextFormatParameters::overflowText

The characters that represent the clipped text when the text string to be rendered is too long to fit in the node.

bool kanzi::TextConcept::TextFormatParameters::wordWrap

Whether to break long text lines to multiple lines to make the text fit within the boundaries of the node.


The documentation for this struct was generated from the following file: