FRichTextLayoutMarshaller

Get/set the raw text to/from a text layout as rich text

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Text/RichTextLayoutMarshaller.h

Include

#include "Framework/Text/RichTextLayoutMarshaller.h"

Syntax

class FRichTextLayoutMarshaller : public FBaseTextLayoutMarshaller

Remarks

Get/set the raw text to/from a text layout as rich text

Variables

Name Description

Protected variable

TArray< TShared...

 

Decorators

Any decorators that should be used while parsing the text.

Protected variable

const ISlateSty...

 

DecoratorStyleSet

The style set used for looking up styles used by decorators

Protected variable

float

 

FontSizeMultiplier

Multiplier applied on font

Protected variable

TArray< TShared...

 

InlineDecorators

Additional decorators can be appended inline.

Protected variable

TSharedPtr< IRi...

 

Parser

The parser used to resolve any markup used in the provided string.

Protected variable

TSharedPtr< IRi...

 

Writer

The writer used to recreate any markup needed to preserve the styled runs.

Constructors

Name Description

Protected function

FRichTextLayoutMarshaller

(
    TArray< TSharedRef< ITextDecorator ...,
    const ISlateStyle*const InDeco...
)

Protected function

FRichTextLayoutMarshaller

(
    TSharedPtr< IRichTextMarkupParser >...,
    TSharedPtr< IRichTextMarkupWriter >...,
    TArray< TSharedRef< ITextDecorator ...,
    const ISlateStyle*const InDeco...
)

Destructors

Name Description

Public function Virtual

~FRichTextLayoutMarshaller()

Functions

Name Description

Public function

FRichTextLay...

 

AppendInlineDecorator

(
    const TSharedRef< ITextDecorator > ...
)

Append an inline decorator to this marshaller

Protected function Virtual

void

 

AppendRunsForText

(
    const int32 LineIndex,
    const FTextRunParseResults& TextRu...,
    const FString& ProcessedString,
    const FTextBlockStyle& DefaultText...,
    const TSharedRef< FString >& InOut...,
    FTextLayout& TargetTextLayout,
    TArray< TSharedRef< IRun >>& Runs,
    TArray< FTextLineHighlight >& Line...,
    TMap< const FTextBlockStyle*, ...,
    TMap< const FTextBlockStyle*, ...
)

Public function Static

TSharedRef< ...

 

Create

(
    TArray< TSharedRef< ITextDecorator ...,
    const ISlateStyle*const InDeco...
)

Public function Static

TSharedRef< ...

 

Create

(
    TSharedPtr< IRichTextMarkupParser >...,
    TSharedPtr< IRichTextMarkupWriter >...,
    TArray< TSharedRef< ITextDecorator ...,
    const ISlateStyle*const InDeco...
)

Public function

void

 

SetDecoratorStyleSet

(
    const ISlateStyle* InStyleSet
)

Public function

void

 

SetFontSizeMultiplier

(
    const float NewFontSizeMultiplier
)

Set the Multiplier applied on the font size of the text

Protected function Const

TSharedPtr< ...

 

TryGetDecorator

(
    const FString& Line,
    const FTextRunParseResults& TextRu...
)

Overridden from ITextLayoutMarshaller

Name Description

Public function Virtual

void

 

GetText

(
    FString& TargetString,
    const FTextLayout& SourceTextLayou...
)

Populate the string from the text layout

Public function Virtual

void

 

SetText

(
    const FString& SourceString,
    FTextLayout& TargetTextLayout
)

ITextLayoutMarshaller.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss