LuciadCPillar 2023.1.04
luciad::TextBlock::LineBuilder Class Referencefinal

A class representing a line of text with multiple words with different styles. More...

#include <luciad/text/TextBlock.h>

Public Member Functions

LineBuilderaddText (std::string utf8String, const TextStyle &style) &
 Add UTF8 encoded strings with specific styling options to the line. More...
 
LineBuilder addText (std::string utf8String, const TextStyle &style) &&
 Add UTF8 encoded strings with specific styling options to the line. More...
 

Detailed Description

A class representing a line of text with multiple words with different styles.

Since
2021.0

Member Function Documentation

◆ addText() [1/2]

LineBuilder & luciad::TextBlock::LineBuilder::addText ( std::string  utf8String,
const TextStyle style 
) &

Add UTF8 encoded strings with specific styling options to the line.

Parameters
utf8Stringtext to be added to the current line.
stylestyling properties for this piece of text. See TextStyle.
Returns
the current line.

◆ addText() [2/2]

LineBuilder luciad::TextBlock::LineBuilder::addText ( std::string  utf8String,
const TextStyle style 
) &&

Add UTF8 encoded strings with specific styling options to the line.

Parameters
utf8Stringtext to be added to the current line.
stylestyling properties for this piece of text. See TextStyle.
Returns
the current line.