ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
FArticyRichTextDecorator Class Reference
Inheritance diagram for FArticyRichTextDecorator:

Public Member Functions

 FArticyRichTextDecorator (URichTextBlock *InOwner, UArticyRichTextDecorator *InDecorator)
virtual bool Supports (const FTextRunParseResults &RunParseResult, const FString &Text) const override

Protected Member Functions

virtual TSharedPtr< SWidget > CreateDecoratorWidget (const FTextRunInfo &RunInfo, const FTextBlockStyle &TextStyle) const override

Member Function Documentation

◆ CreateDecoratorWidget()

virtual TSharedPtr< SWidget > FArticyRichTextDecorator::CreateDecoratorWidget ( const FTextRunInfo & RunInfo,
const FTextBlockStyle & TextStyle ) const
inlineoverrideprotectedvirtual

Creates a widget for text decoration based on the run info.

Parameters
RunInfoInformation about the text run.
TextStyleThe style applied to the text.
Returns
A shared pointer to the created widget, or nullptr if no widget was created.

◆ Supports()

virtual bool FArticyRichTextDecorator::Supports ( const FTextRunParseResults & RunParseResult,
const FString & Text ) const
inlineoverridevirtual

Determines if this decorator supports the given text run based on its metadata.

Parameters
RunParseResultThe parsed results of the text run.
TextThe text of the run.
Returns
True if the decorator supports the run (i.e., has a color or link attribute), otherwise false.

The documentation for this class was generated from the following file:
  • Source/ArticyRuntime/Private/ArticyRichTextDecorator.cpp