Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UEditableText
- UEditorUtilityEditableText
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/EditableText.h |
| Include | #include "Components/EditableText.h" |
Syntax
class UEditableText : public UWidget
Remarks
Editable text box widget
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowContextMenu | Whether the context menu can be opened | |
| FGetText | HintTextDelegate | A bindable delegate to allow logic to drive the hint text of the widget | |
| FText | K2_Cache_HintText | ||
| FText | K2_Cache_Text | ||
| TEnumAsByte< EVirtualKeyboardType::Type > | KeyboardType | If we're on a platform that requires a virtual keyboard, what kind of keyboard should this widget use? | |
| TSharedPtr< SEditableText > | MyEditableText | ||
| FOnEditableTextChangedEvent | OnTextChanged | Called whenever the text is changed programmatically or interactively by the user | |
| FOnEditableTextCommittedEvent | OnTextCommitted | Called whenever the text is committed. | |
| FShapedTextOptions | ShapedTextOptions | Controls how the text within this widget should be shaped. | |
| FGetText | TextDelegate | A bindable delegate to allow logic to drive the text of the widget | |
| EVirtualKeyboardDismissAction | VirtualKeyboardDismissAction | What action should be taken when the virtual keyboard is dismissed? | |
| FVirtualKeyboardOptions | VirtualKeyboardOptions | Additional options for the virtual keyboard | |
| EVirtualKeyboardTrigger | VirtualKeyboardTrigger | ||
| FEditableTextStyle | WidgetStyle | The style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEditableText
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Whether to clear keyboard focus when pressing enter to commit changes | ||
| const FSlateFontInfo & | GetFont () |
||
| FText | GetHintText () |
Gets the Hint text that appears when there is no text in the text box | |
| bool | Return true when the caret is moved when gaining focus | ||
| bool | |||
| bool | |||
| ETextJustify::Type | |||
| float | |||
| bool | Whether to allow the user to back out of changes when they press the escape key | ||
| bool | Whether to select all text when pressing enter to commit changes | ||
| bool | Whether to select all text when the user clicks to give focus on the widget | ||
| FText | GetText () |
Gets the widget text | |
| ETextOverflowPolicy | |||
| void | HandleOnTextChanged
(
const FText& Text |
||
| void | HandleOnTextCommitted
(
const FText& Text, |
||
| FText | |||
| FText | K2_Gate_Text () |
||
| void | SetClearKeyboardFocusOnCommit
(
bool bInClearKeyboardFocusOnCommit |
Set to true to clear keyboard focus when pressing enter to commit changes | |
| void | SetFont
(
FSlateFontInfo InFontInfo |
||
| void | SetFontMaterial
(
UMaterialInterface* InMaterial |
||
| void | SetFontOutlineMaterial
(
UMaterialInterface* InMaterial |
||
| void | SetHintText
(
FText InHintText |
||
| void | SetIsCaretMovedWhenGainFocus
(
bool bIsCaretMovedWhenGainFocus |
When set to true the caret is moved when gaining focus | |
| void | SetIsPassword
(
bool InbIsPassword |
||
| void | SetIsReadOnly
(
bool InbIsReadyOnly |
||
| void | SetJustification
(
ETextJustify::Type InJustification |
||
| void | |||
| void | SetMinimumDesiredWidth
(
float InMinDesiredWidth |
Set the minimum desired width for this text box | |
| void | SetRevertTextOnEscape
(
bool bRevertTextOnEscape |
Set to true to allow the user to back out of changes when they press the escape key | |
| void | SetSelectAllTextOnCommit
(
bool bSelectAllTextOnCommit |
Set to true to select all text when pressing enter to commit changes | |
| void | SetSelectAllTextWhenFocused
(
bool bSelectAllTextWhenFocused |
Set to true to select all text when the user clicks to give focus on the widget | |
| void | Directly sets the widget text. | ||
| void | SetTextOverflowPolicy
(
ETextOverflowPolicy InOverflowPolicy |
||
| void | SetWidgetStyle
(
const FEditableTextStyle& InEditableTextStyle |
Set the style and ensure the visual will be updated accordingly |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWidget > | Gets the widget that accessibility properties should synchronize to. | ||
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnEditableTextChangedEvent | |||
| FOnEditableTextCommittedEvent |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | ClearKeyboardFocusOnCommit | Direct access to ClearKeyboardFocusOnCommit is deprecated. Please use the getter or setter. | |
| FText | HintText | Direct access to Hint Text is deprecated. Please use the getter or setter. | |
| bool | IsCaretMovedWhenGainFocus | Direct access to IsCaretMovedWhenGainFocus is deprecated. Please use the getter or setter. | |
| bool | IsPassword | Direct access to IsPassword is deprecated. Please use the getter or setter. | |
| bool | IsReadOnly | Direct access to IsReadOnly is deprecated. Please use the getter or setter. | |
| TEnumAsByte< ETextJustify::Type > | Justification | Direct access to Justification is deprecated. Please use the getter or setter. | |
| float | MinimumDesiredWidth | Direct access to MinimumDesiredWidth is deprecated. Please use the getter or setter. | |
| ETextOverflowPolicy | OverflowPolicy | Direct access to OverflowPolicy is deprecated. Please use the getter or setter. | |
| bool | RevertTextOnEscape | Direct access to RevertTextOnEscape is deprecated. Please use the getter or setter. | |
| bool | SelectAllTextOnCommit | Direct access to SelectAllTextOnCommit is deprecated. Please use the getter or setter. | |
| bool | SelectAllTextWhenFocused | Direct access to SelectAllTextWhenFocused is deprecated. Please use the getter or setter. | |
| FText | Text | Direct access to Text is deprecated. Please use the getter or setter. |