Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UTextLayoutWidget
- URichTextBlock
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/RichTextBlock.h |
| Include | #include "Components/RichTextBlock.h" |
Syntax
UCLASS (MinimalAPI)
class URichTextBlock : public UTextLayoutWidget
Remarks
The rich text block
- Fancy Text
- No Children
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOverrideDefaultStyle | True to specify the default text style for this rich text inline, overriding any default provided in the style set table | |
| TArray< TSubclassOf< URichTextBlockDecorator > > | DecoratorClasses | ||
| FTextBlockStyle | DefaultTextStyle | ||
| FTextBlockStyle | DefaultTextStyleOverride | Text style to apply by default to text in this block | |
| TArray< TObjectPtr< URichTextBlockDecorator > > | InstanceDecorators | ||
| float | MinDesiredWidth | The minimum desired size for the text | |
| TSharedPtr< SRichTextBlock > | MyRichTextBlock | ||
| TSharedPtr< class FSlateStyleSet > | StyleInstance | ||
| FText | Text | The text to display | |
| ETextOverflowPolicy | TextOverflowPolicy | Sets what happens to text that is clipped and doesn't fit within the clip rect for this widget | |
| TObjectPtr< UDataTable > | TextStyleSet | ||
| ETextTransformPolicy | TextTransformPolicy | The text transformation policy to apply to this text block |
Constructors
| Type | Name | Description | |
|---|---|---|---|
URichTextBlock
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | Remove all overrides made to the default text style and return to the style specified in the style set data table | ||
| void | CreateDecorators
(
TArray< TSharedRef< class ITextDecorator > >& OutDecorators |
||
| TSharedPtr< class IRichTextMarkupParser > | |||
| TSharedPtr< class IRichTextMarkupWriter > | |||
| const FTextBlockStyle & | |||
| URichTextBlockDecorator * | GetDecoratorByClass
(
TSubclassOf< URichTextBlockDecorator > DecoratorClass |
||
| UMaterialInstanceDynamic * | Creates a dynamic material for the default font or returns it if it already exists | ||
| const FTextBlockStyle & | |||
| const FTextBlockStyle & | |||
| float | |||
| ETextOverflowPolicy | |||
| FText | GetText () |
Returns widgets text. | |
| UDataTable * | |||
| ETextTransformPolicy | |||
| void | |||
| void | Causes the text to reflow it's layout and re-evaluate any decorators | ||
| void | SetAutoWrapText
(
bool InAutoTextWrap |
Set the auto wrap for this rich text block | |
| void | SetDecorators
(
const TArray< TSubclassOf< URichTextBlockDecorator > >& InDecoratorClasses |
Replaces the existing decorators with the list provided | |
| void | SetDefaultColorAndOpacity
(
FSlateColor InColorAndOpacity |
Sets the color and opacity of the default text in this rich text block | |
| void | SetDefaultFont
(
FSlateFontInfo InFontInfo |
Dynamically set the default font info for this rich text block | |
| void | SetDefaultMaterial
(
UMaterialInterface* InMaterial |
||
| void | SetDefaultShadowColorAndOpacity
(
FLinearColor InShadowColorAndOpacity |
Sets the color and opacity of the default text drop shadow Note: if opacity is zero no shadow will be drawn | |
| void | SetDefaultShadowOffset
(
FVector2D InShadowOffset |
Sets the offset that the default text drop shadow should be drawn at | |
| void | SetDefaultStrikeBrush
(
const FSlateBrush& InStrikeBrush |
Dynamically set the default strike brush for this rich text block | |
| void | SetDefaultTextStyle
(
const FTextBlockStyle& InDefaultTextStyle |
Wholesale override of the currently established default text style | |
| void | SetMinDesiredWidth
(
float InMinDesiredWidth |
Set the minimum desired width for this rich text block | |
| void | SetText
(
const FText& InText |
Directly sets the widget text. | |
| void | SetTextOverflowPolicy
(
ETextOverflowPolicy InOverflowPolicy |
Set the text overflow policy for this text block. | |
| void | SetTextStyleSet
(
UDataTable* NewTextStyleSet |
||
| void | SetTextTransformPolicy
(
ETextTransformPolicy InTransformPolicy |
Set the text transformation policy for this text block. | |
| void |
Overridden from UTextLayoutWidget
| Type | Name | Description | |
|---|---|---|---|
| void | OnApplyLineHeightToBottomLineChanged
(
bool InApplyLineHeightToBottomLine |
||
| void | OnAutoWrapTextChanged
(
bool InAutoWrapText |
||
| void | OnJustificationChanged
(
ETextJustify::Type InJustification |
||
| void | OnLineHeightPercentageChanged
(
float InLineHeightPercentage |
||
| void | OnMarginChanged
(
const FMargin& InMargin |
||
| void | OnShapedTextOptionsChanged
(
FShapedTextOptions InShapedTextOptions |
||
| void | OnWrappingPolicyChanged
(
ETextWrappingPolicy InWrappingPolicy |
||
| void | OnWrapTextAtChanged
(
float InWrapTextAt |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| void | Called after constructing a new widget from the palette. | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. | ||
| void | ValidateCompiledDefaults
(
IWidgetCompilerLog& CompileLog |
Called at the end of Widget Blueprint compilation. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |