Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/TextBlock.h |
Include |
#include "Components/TextBlock.h" |
class UTextBlock : public UTextLayoutWidget
A simple static text widget.
No Children Text
Name | Description | ||
---|---|---|---|
|
bSimpleTextMode |
If this is enabled, text shaping, wrapping, justification are disabled in favor of much faster text layout and measurement. |
|
|
bWrapWithInvalidationPanel |
If true, it will automatically wrap this text widget with an invalidation panel |
|
|
ColorAndOpacity |
The color of the text |
|
|
ColorAndOpacityDelegate |
A bindable delegate for the ColorAndOpacity. |
|
|
Font |
The font to render the text with |
|
|
K2_Cache_ColorAndOpacity |
||
|
K2_Cache_ShadowColorAndOpacity |
||
|
K2_Cache_Text |
||
|
float |
MinDesiredWidth |
The minimum desired size for the text |
|
TSharedPtr< STe... |
MyTextBlock |
|
|
ShadowColorAndOpacity |
The color of the shadow |
|
|
ShadowColorAndOpacityDelegate |
A bindable delegate for the ShadowColorAndOpacity. |
|
|
ShadowOffset |
The direction the shadow is cast |
|
|
StrikeBrush |
The brush to strike through text with |
|
|
Text |
The text to display |
|
|
FGetText |
TextDelegate |
A bindable delegate to allow logic to drive the text of the widget |
|
TextOverflowPolicy |
Sets what happens to text that is clipped and doesn't fit within the clip rect for this widget |
|
|
TextTransformPolicy |
The text transformation policy to apply to this text block |
Name | Description | |
---|---|---|
|
UTextBlock ( |
Name | Description | ||
---|---|---|---|
|
TAttribute< ... |
GetDisplayText() |
Get the text that should be displayed in the internal Slate widget (allows flags to mutate the display text without modifying the persistent designer property data) |
|
UMaterialIns... |
GetDynamicFontMaterial() |
|
|
UMaterialIns... |
GetDynamicOutlineMaterial() |
|
|
GetText() |
Gets the widget text |
|
|
GetTextWarningImageVisibility() |
||
|
HandleTextCommitted ( |
||
|
K2_Gate_ColorAndOpacity() |
||
|
K2_Gate_ShadowColorAndOpacity() |
||
|
K2_Gate_Text() |
||
|
SetAutoWrapText ( |
Set the auto wrap for this text block. |
|
|
SetColorAndOpacity ( |
Sets the color and opacity of the text in this text block |
|
|
SetFont ( |
Dynamically set the font info for this text block |
|
|
SetMinDesiredWidth ( |
Set the minimum desired width for this text block |
|
|
SetOpacity ( |
Sets the opacity of the text in this text block |
|
|
SetShadowColorAndOpacity ( |
Sets the color and opacity of the text drop shadow if opacity is zero no shadow will be drawn |
|
|
SetShadowOffset ( |
Sets the offset that the text drop shadow should be drawn at |
|
|
SetStrikeBrush ( |
Dynamically set the strike brush for this text block |
|
|
SetText ( |
Directly sets the widget text. |
|
|
SetTextOverflowPolicy ( |
Set the text overflow policy for this text block. |
|
|
SetTextTransformPolicy ( |
Set the text transformation policy for this text block. |
Name | Description | ||
---|---|---|---|
|
SetJustification ( |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. |
|
GetLabelMetadata() |
Get Label Metadata, which may be as simple as a bit of string data to help identify an anonymous text block. |
|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
OnBindingChanged ( |
||
|
OnCreationFromPalette() |
Called by the palette after constructing a new widget, allows the widget to perform interesting default setup that we don't want to be UObject Defaults. |
|
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
CanEditChange ( |
Called by the editor to query whether a property of this object is allowed to be modified. |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
Name | Description | ||
---|---|---|---|
|
bAutoWrapText_DEPRECATED |
Whether the text should automatically wrap |