Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Text
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SRichTextBlock
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Text/SRichTextBlock.h |
| Include | #include "Widgets/Text/SRichTextBlock.h" |
Syntax
class SRichTextBlock : public SWidget
Remarks
A rich static text widget. Through the use of markup and text decorators, text with different styles, embedded image and widgets can be achieved.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
||
| TSharedRef< ITextDecorator > | Decorator
(
const TSharedRef< ITextDecorator >& Decorator |
||
| const FText & | GetText () |
Gets the text assigned to this text block | |
| TSharedRef< ITextDecorator > | HyperlinkDecorator
(
const FString Id, |
||
| TSharedRef< ITextDecorator > | HyperlinkDecorator
(
const FString Id, |
||
| TSharedRef< ITextDecorator > | ImageDecorator
(
FString RunName, |
||
| void | Refresh () |
Causes the text to reflow it's layout | |
| void | SetAutoWrapText
(
const TAttribute< bool >& InAutoWrapText |
See AutoWrapText attribute | |
| void | SetDecorators
(
TArrayView< TSharedRef< ITextDecorator >> InDecorators |
Replaces the decorators for this text block | |
| void | SetDecoratorStyleSet
(
const ISlateStyle* NewDecoratorStyleSet |
||
| void | SetHighlightText
(
const TAttribute< FText >& InHighlightText |
See HighlightText attribute | |
| void | SetJustification
(
const TAttribute< ETextJustify::Type >& InJustification |
See Justification attribute | |
| void | SetLineHeightPercentage
(
const TAttribute< float >& InLineHeightPercentage |
See LineHeightPercentage attribute | |
| void | SetMargin
(
const TAttribute< FMargin >& InMargin |
See Margin attribute | |
| void | SetMinDesiredWidth
(
const TAttribute< float >& InMinDesiredWidth |
See MinDesiredWidth attribute | |
| void | SetOverflowPolicy
(
TOptional< ETextOverflowPolicy > InOverflowPolicy |
Sets the overflow policy for this text block | |
| void | SetText
(
const TAttribute< FText >& InTextAttr |
Sets the text for this text block | |
| void | SetTextBlockScale
(
const float NewTextBlockScale |
Set the scale value at the TextLayout | |
| void | SetTextFlowDirection
(
const TOptional< ETextFlowDirection >& InTextFlowDirection |
See TextFlowDirection attribute | |
| void | SetTextShapingMethod
(
const TOptional< ETextShapingMethod >& InTextShapingMethod |
See TextShapingMethod attribute | |
| void | SetTextStyle
(
const FTextBlockStyle& InTextStyle |
See TextStyle argument | |
| void | SetTransformPolicy
(
const TAttribute< ETextTransformPolicy >& InTransformPolicy |
Set TransformPolicy attribute | |
| void | SetWrappingPolicy
(
const TAttribute< ETextWrappingPolicy >& InWrappingPolicy |
Set WrappingPolicy attribute | |
| void | SetWrapTextAt
(
const TAttribute< float >& InWrapTextAt |
See WrapTextAt attribute | |
| TSharedRef< ITextDecorator > | WidgetDecorator
(
const FString RunName, |
||
| TSharedRef< ITextDecorator > | WidgetDecorator
(
const FString RunName, |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float LayoutScaleMultiplier |
Compute the ideal size necessary to display this widget. | |
| bool | Recomputes the volatility of the widget. | ||
| FChildren * | GetChildren () |
Returns the useful children (if any) of this widget. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |