![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateTextBlockLayout.h>
Classes | |
| struct | FWidgetArgs |
| struct | FWidgetDesiredSizeArgs |
Class to handle the cached layout of STextBlock/SRichTextBlock by proxying around a FTextLayout
| FSlateTextBlockLayout::FSlateTextBlockLayout | ( | SWidget * | InOwner, |
| FTextBlockStyle | InDefaultTextStyle, | ||
| const TOptional< ETextShapingMethod > | InTextShapingMethod, | ||
| const TOptional< ETextFlowDirection > | InTextFlowDirection, | ||
| const FCreateSlateTextLayout & | InCreateSlateTextLayout, | ||
| TSharedRef< ITextLayoutMarshaller > | InMarshaller, | ||
| TSharedPtr< IBreakIterator > | InLineBreakPolicy | ||
| ) |
Constructor
| void FSlateTextBlockLayout::ArrangeChildren | ( | const FGeometry & | AllottedGeometry, |
| FArrangedChildren & | ArrangedChildren | ||
| ) | const |
Arrange any child widgets in this layout
| PRAGMA_DISABLE_DEPRECATION_WARNINGS FVector2D FSlateTextBlockLayout::ComputeDesiredSize | ( | const FWidgetArgs & | InWidgetArgs, |
| const float | InScale, | ||
| const FTextBlockStyle & | InTextStyle | ||
| ) |
Get the computed desired size for this layout, updating the internal cache as required
| FVector2D FSlateTextBlockLayout::ComputeDesiredSize | ( | const FWidgetDesiredSizeArgs & | InWidgetArgs, |
| const float | InScale | ||
| ) |
Get the computed desired size for this layout, updating the internal cache as required
| FVector2D FSlateTextBlockLayout::ComputeDesiredSize | ( | const FWidgetDesiredSizeArgs & | InWidgetArgs, |
| const float | InScale, | ||
| const FTextBlockStyle & | InTextStyle | ||
| ) |
Get the computed desired size for this layout, updating the internal cache as required
| void FSlateTextBlockLayout::ConditionallyUpdateTextStyle | ( | const FTextBlockStyle & | InTextStyle | ) |
Conditionally update the text style if needed
| void FSlateTextBlockLayout::ConditionallyUpdateTextStyle | ( | const FTextBlockStyle::CompareParams & | InNewStyleParams | ) |
Conditionally update the text style if needed
| void FSlateTextBlockLayout::DirtyContent | ( | ) |
Force dirty the content due to an external change that can't be picked up automatically by this cache. Also force dirties the layout. Will cause the contained text to be re-parsed by the marshaller next frame.
| void FSlateTextBlockLayout::DirtyLayout | ( | ) |
Force dirty the layout due to an external change that can't be picked up automatically by this cache
| FChildren * FSlateTextBlockLayout::GetChildren | ( | ) |
Get the child widgets of this layout
| PRAGMA_ENABLE_DEPRECATION_WARNINGS FVector2D FSlateTextBlockLayout::GetDesiredSize | ( | ) | const |
Gets the last computed desired size.
| float FSlateTextBlockLayout::GetLayoutScale | ( | ) | const |
Get the TextLayout scale.
| int32 FSlateTextBlockLayout::OnPaint | ( | const FPaintArgs & | InPaintArgs, |
| const FGeometry & | InAllottedGeometry, | ||
| const FSlateRect & | InClippingRect, | ||
| FSlateWindowElementList & | OutDrawElements, | ||
| int32 | LayerId, | ||
| const FWidgetStyle & | InWidgetStyle, | ||
| bool | bParentEnabled | ||
| ) |
Paint this layout, updating the internal cache as required
| void FSlateTextBlockLayout::OverrideTextStyle | ( | const FTextBlockStyle & | InTextStyle | ) |
Override the text style used and immediately update the text layout (if required). This can be used to override the text style after calling ComputeDesiredSize (eg, if you can only compute your text style in OnPaint) Please note that changing the size or font used by the text may causing clipping issues until the next call to ComputeDesiredSize
| void FSlateTextBlockLayout::SetDebugSourceInfo | ( | const TAttribute< FString > & | InDebugSourceInfo | ) |
Set the information used to help identify who owns this text layout in the case of an error
| void FSlateTextBlockLayout::SetTextFlowDirection | ( | const TOptional< ETextFlowDirection > & | InTextFlowDirection | ) |
Set the text flow direction that the internal text layout should use
| void FSlateTextBlockLayout::SetTextOverflowPolicy | ( | const TOptional< ETextOverflowPolicy > | InTextOverflowPolicy | ) |
Set the text overflow policy that the internal text layout should use
| void FSlateTextBlockLayout::SetTextShapingMethod | ( | const TOptional< ETextShapingMethod > & | InTextShapingMethod | ) |
Set the text shaping method that the internal text layout should use
| void FSlateTextBlockLayout::UpdateTextStyle | ( | const FTextBlockStyle & | InTextStyle | ) |
Update the text style.
| void FSlateTextBlockLayout::UpdateTextStyle | ( | const FTextBlockStyle::CompareParams & | InNewStyleParams | ) |
Update the text style.