Navigation
API > API/Runtime > API/Runtime/Slate
Get/set the raw text to/from a text layout as rich text
| Name | FRichTextLayoutMarshaller |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Text/RichTextLayoutMarshaller.h |
| Include Path | #include "Framework/Text/RichTextLayoutMarshaller.h" |
Syntax
class FRichTextLayoutMarshaller : public FBaseTextLayoutMarshaller
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRichTextLayoutMarshaller
(
TArray< TSharedRef< ITextDecorator > > InDecorators, |
Framework/Text/RichTextLayoutMarshaller.h | ||
FRichTextLayoutMarshaller
(
TSharedPtr< IRichTextMarkupParser > InParser, |
Framework/Text/RichTextLayoutMarshaller.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRichTextLayoutMarshaller() |
Framework/Text/RichTextLayoutMarshaller.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRichTextLayoutMarshaller & AppendInlineDecorator
(
const TSharedRef< ITextDecorator >& DecoratorToAdd |
Append an inline decorator to this marshaller | Framework/Text/RichTextLayoutMarshaller.h | |
void SetDecorators
(
TArrayView< TSharedRef< ITextDecorator > > InDecorators |
Replace all decorators on this marshaller | Framework/Text/RichTextLayoutMarshaller.h | |
void SetDecoratorStyleSet
(
const ISlateStyle* InStyleSet |
Framework/Text/RichTextLayoutMarshaller.h | ||
void SetFontSizeMultiplier
(
const float NewFontSizeMultiplier |
Set the Multiplier applied on the font size of the text | Framework/Text/RichTextLayoutMarshaller.h |
Overridden from ITextLayoutMarshaller
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetText
(
FString& TargetString, |
Populate the string from the text layout | Framework/Text/RichTextLayoutMarshaller.h | |
virtual void SetText
(
const FString& SourceString, |
ITextLayoutMarshaller. | Framework/Text/RichTextLayoutMarshaller.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AppendRunsForText
(
const int32 LineIndex, |
Framework/Text/RichTextLayoutMarshaller.h | ||
TSharedPtr< ITextDecorator > TryGetDecorator
(
const FString& Line, |
Framework/Text/RichTextLayoutMarshaller.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FRichTextLayoutMarshaller > Create
(
TArray< TSharedRef< ITextDecorator > > InDecorators, |
Framework/Text/RichTextLayoutMarshaller.h | ||
static TSharedRef< FRichTextLayoutMarshaller > Create
(
TSharedPtr< IRichTextMarkupParser > InParser, |
Framework/Text/RichTextLayoutMarshaller.h |