Pauses typewriter when it hits break tag - <b/>.
More...
#include <G:/UE5/UEProjects/5.7/VisualUEx/Plugins/VisualU/Source/VisualU/Public/BreakVisualTextBlockDecorator.h>
|
|
| FBreakVisualTextBlockDecorator (UVisualTextBlock *InOwner) |
| |
| virtual bool | Supports (const FTextRunParseResults &RunParseResult, const FString &Text) const override |
| | Determines the tag that is supported by this decorator.
|
| |
|
| virtual void | CreateDecoratorText (const FTextRunInfo &RunInfo, FTextBlockStyle &InOutTextStyle, FString &InOutString) const override |
| | Produces decorated result.
|
| |
|
|
typedef FRichTextDecorator | Super |
| |
|
|
| FBreakVisualTextBlockDecorator (URichTextBlock *InOwner) |
| | Parent constructor is hidden because we want to construct only from UVisualTextBlock.
|
| |
|
|
FTimerHandle | BreakTimer |
| | Timer to pause typewriter.
|
| |
|
int32 | TagPosition |
| | Position of the break tag in the text.
|
| |
|
uint32 | bTagDiscovered: 1 |
| | Determines if at least one break tag were found.
|
| |
Pauses typewriter when it hits break tag - <b/>.
Understands
*text*<b>*text*</> and *text*<b/>*text*.
Only one tag per text is supported at this time.
- Note
- Only the last found break tag in the text will have an effect.
◆ CreateDecoratorText()
| void FBreakVisualTextBlockDecorator::CreateDecoratorText |
( |
const FTextRunInfo & | RunInfo, |
|
|
FTextBlockStyle & | InOutTextStyle, |
|
|
FString & | InOutString ) const |
|
overrideprotectedvirtual |
Produces decorated result.
Responsible for pausing typewriter, leaves provided text style intact.
- Parameters
-
| RunInfo | contains data about parsed tag and its metadata |
| InOutTextStyle | text style to be decorated. Left as provided. |
| InOutString | text to be modified. Left as provided. |
◆ Supports()
| bool FBreakVisualTextBlockDecorator::Supports |
( |
const FTextRunParseResults & | RunParseResult, |
|
|
const FString & | Text ) const |
|
overridevirtual |
Determines the tag that is supported by this decorator.
- Parameters
-
| RunParseResult | contains data about parsed tags and its metadata |
| Text | Content of Rich text block that has this decorator |
The documentation for this class was generated from the following files:
- BreakVisualTextBlockDecorator.h
- BreakVisualTextBlockDecorator.cpp