Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Text
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateTextBlockLayout.h |
| Include | #include "Widgets/Text/SlateTextBlockLayout.h" |
Syntax
class FSlateTextBlockLayout
Remarks
Class to handle the cached layout of STextBlock/SRichTextBlock by proxying around a FTextLayout
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateTextBlockLayout
(
SWidget* InOwner, |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ArrangeChildren
(
const FGeometry& AllottedGeometry, |
Arrange any child widgets in this layout | |
| FVector2D | ComputeDesiredSize
(
const FWidgetDesiredSizeArgs& InWidgetArgs, |
Get the computed desired size for this layout, updating the internal cache as required | |
| FVector2D | ComputeDesiredSize
(
const FWidgetDesiredSizeArgs& InWidgetArgs, |
Get the computed desired size for this layout, updating the internal cache as required | |
| void | ConditionallyUpdateTextStyle
(
const FTextBlockStyle& InTextStyle |
Conditionally update the text style if needed | |
| void | ConditionallyUpdateTextStyle
(
const FTextBlockStyle::CompareParams& InNewStyleParams |
Conditionally update the text style if needed | |
| void |
DirtyContent ()
|
Force dirty the content due to an external change that can't be picked up automatically by this cache. | |
| void |
DirtyLayout ()
|
Force dirty the layout due to an external change that can't be picked up automatically by this cache | |
| FChildren * | GetChildren () |
Get the child widgets of this layout | |
| FVector2D | Gets the last computed desired size. | ||
| float | Get the TextLayout scale. | ||
| int32 | OnPaint
(
const FPaintArgs& InPaintArgs, |
Paint this layout, updating the internal cache as required | |
| void | OverrideTextStyle
(
const FTextBlockStyle& InTextStyle |
Override the text style used and immediately update the text layout (if required). | |
| void | SetDebugSourceInfo
(
const TAttribute< FString >& InDebugSourceInfo |
Set the information used to help identify who owns this text layout in the case of an error | |
| void | SetTextFlowDirection
(
const TOptional< ETextFlowDirection >& InTextFlowDirection |
Set the text flow direction that the internal text layout should use | |
| void | SetTextOverflowPolicy
(
const TOptional< ETextOverflowPolicy > InTextOverflowPolicy |
Set the text overflow policy that the internal text layout should use | |
| void | SetTextShapingMethod
(
const TOptional< ETextShapingMethod >& InTextShapingMethod |
Set the text shaping method that the internal text layout should use |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FWidgetArgs | |||
| FWidgetDesiredSizeArgs |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGSFVector2D | ComputeDesiredSize
(
const FWidgetArgs& InWidgetArgs, |
FWidgetArgs is deprecated. Upgrade to FWidgetDesiredSizeArgs instead. |