Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UTextLayoutWidget
- UMultiLineEditableText
- UEditorUtilityMultiLineEditableText
- UMultiLineEditableTextBox
- UEditorUtilityMultiLineEditableTextBox
- URichTextBlock
- UCommonRichTextBlock
- UTextBlock
- UCommonTextBlock
- UCommonDateTimeTextBlock
- UCommonNumericTextBlock
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/TextWidgetTypes.h |
| Include | #include "Components/TextWidgetTypes.h" |
Syntax
class UTextLayoutWidget : public UWidget
Remarks
Base class for all widgets that use a text layout. Contains the common options that should be exposed for the underlying Slate widget.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | AutoWrapText | True if we're wrapping text automatically based on the computed horizontal space for this widget. | |
| TEnumAsByte< ETextJustify::Type > | Justification | How the text should be aligned with the margin. | |
| float | LineHeightPercentage | The amount to scale each lines height by. | |
| FMargin | Margin | The amount of blank space left around the edges of text area. | |
| FShapedTextOptions | ShapedTextOptions | Controls how the text within this widget should be shaped. | |
| ETextWrappingPolicy | WrappingPolicy | The wrapping policy to use. | |
| float | WrapTextAt | Whether text wraps onto a new line when it's length exceeds this width; if this value is zero or negative, no wrapping occurs. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UTextLayoutWidget
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| float | |||
| void | SetJustification
(
ETextJustify::Type InJustification |
||
| void | SynchronizeTextLayoutProperties
(
TWidgetType& InWidget |
Synchronize the properties with the given widget. |