Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Text
Inheritance Hierarchy
- ITextLayoutMarshaller
- FBaseTextLayoutMarshaller
- FRichTextLayoutMarshaller
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
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedRef< ITextDecorator > > | Decorators | Any decorators that should be used while parsing the text. | |
| const ISlateStyle * | DecoratorStyleSet | The style set used for looking up styles used by decorators | |
| float | FontSizeMultiplier | Multiplier applied on font | |
| TArray< TSharedRef< ITextDecorator > > | InlineDecorators | Additional decorators can be appended inline. | |
| TSharedPtr< IRichTextMarkupParser > | Parser | The parser used to resolve any markup used in the provided string. | |
| TSharedPtr< IRichTextMarkupWriter > | Writer | The writer used to recreate any markup needed to preserve the styled runs. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRichTextLayoutMarshaller
(
TArray< TSharedRef< ITextDecorator > > InDecorators, |
|||
FRichTextLayoutMarshaller
(
TSharedPtr< IRichTextMarkupParser > InParser, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRichTextLayoutMarshaller & | AppendInlineDecorator
(
const TSharedRef< ITextDecorator >& DecoratorToAdd |
Append an inline decorator to this marshaller | |
| void | AppendRunsForText
(
const int32 LineIndex, |
||
| TSharedRef< FRichTextLayoutMarshaller > | Create
(
TArray< TSharedRef< ITextDecorator > > InDecorators, |
||
| TSharedRef< FRichTextLayoutMarshaller > | Create
(
TSharedPtr< IRichTextMarkupParser > InParser, |
||
| void | SetDecorators
(
TArrayView< TSharedRef< ITextDecorator >> InDecorators |
Replace all decorators on this marshaller | |
| void | SetDecoratorStyleSet
(
const ISlateStyle* InStyleSet |
||
| void | SetFontSizeMultiplier
(
const float NewFontSizeMultiplier |
Set the Multiplier applied on the font size of the text | |
| TSharedPtr< ITextDecorator > | TryGetDecorator
(
const FString& Line, |
Overridden from ITextLayoutMarshaller
| Type | Name | Description | |
|---|---|---|---|
| void | GetText
(
FString& TargetString, |
Populate the string from the text layout | |
| void | SetText
(
const FString& SourceString, |
ITextLayoutMarshaller. |