Navigation
API > API/Runtime > API/Runtime/UMG
Editable text box widget
| Name | UEditableText |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/EditableText.h |
| Include Path | #include "Components/EditableText.h" |
Syntax
UCLASS (MinimalAPI)
class UEditableText : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UEditableText
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEditableText
(
const FObjectInitializer& ObjectInitializer |
Components/EditableText.h |
Classes
| Name | Remarks |
|---|---|
| FOnEditableTextChangedEvent | |
| FOnEditableTextCommittedEvent |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowContextMenu | bool | Whether the context menu can be opened | Components/EditableText.h |
|
| ClearKeyboardFocusOnCommit | bool | Whether to clear keyboard focus when pressing enter to commit changes | Components/EditableText.h |
|
| HintText | FText | Hint text that appears when there is no text in the text box | Components/EditableText.h |
|
| HintTextDelegate | FGetText | A bindable delegate to allow logic to drive the hint text of the widget | Components/EditableText.h | |
| IsCaretMovedWhenGainFocus | bool | When set to true the caret is moved when gaining focus | Components/EditableText.h |
|
| IsPassword | bool | Sets whether this text box is for storing a password | Components/EditableText.h |
|
| IsReadOnly | bool | Sets whether this text box can actually be modified interactively by the user | Components/EditableText.h |
|
| Justification | TEnumAsByte< ETextJustify::Type > | How the text should be aligned with the margin. | Components/EditableText.h |
|
| KeyboardType | TEnumAsByte< EVirtualKeyboardType::Type > | If we're on a platform that requires a virtual keyboard, what kind of keyboard should this widget use? | Components/EditableText.h |
|
| MinimumDesiredWidth | float | The minimum desired Width for the text | Components/EditableText.h |
|
| OnTextChanged | FOnEditableTextChangedEvent | Called whenever the text is changed programmatically or interactively by the user | Components/EditableText.h |
|
| OnTextCommitted | FOnEditableTextCommittedEvent | Called whenever the text is committed. | Components/EditableText.h |
|
| OverflowPolicy | ETextOverflowPolicy | Sets what happens to text that is clipped and doesn't fit within the clip rect for this widget | Components/EditableText.h |
|
| RevertTextOnEscape | bool | Whether to allow the user to back out of changes when they press the escape key | Components/EditableText.h |
|
| SelectAllTextOnCommit | bool | Whether to select all text when pressing enter to commit changes | Components/EditableText.h |
|
| SelectAllTextWhenFocused | bool | Whether to select all text when the user clicks to give focus on the widget | Components/EditableText.h |
|
| ShapedTextOptions | FShapedTextOptions | Controls how the text within this widget should be shaped. | Components/EditableText.h |
|
| Text | FText | The text content for this editable text box widget | Components/EditableText.h |
|
| TextDelegate | FGetText | A bindable delegate to allow logic to drive the text of the widget | Components/EditableText.h | |
| VirtualKeyboardDismissAction | EVirtualKeyboardDismissAction | What action should be taken when the virtual keyboard is dismissed? | Components/EditableText.h |
|
| VirtualKeyboardOptions | FVirtualKeyboardOptions | Additional options for the virtual keyboard | Components/EditableText.h |
|
| VirtualKeyboardTrigger | EVirtualKeyboardTrigger | Components/EditableText.h |
|
|
| WidgetStyle | FEditableTextStyle | The style | Components/EditableText.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EnableIntegratedKeyboard | bool | Whether the integrated keyboard is enabled for this editable text. | Components/EditableText.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetClearKeyboardFocusOnCommit() |
Whether to clear keyboard focus when pressing enter to commit changes | Components/EditableText.h | |
bool GetEnableIntegratedKeyboard() |
Components/EditableText.h | ||
const FSlateFontInfo & GetFont() |
Components/EditableText.h |
|
|
FText GetHintText() |
Gets the Hint text that appears when there is no text in the text box | Components/EditableText.h |
|
bool GetIsCaretMovedWhenGainFocus() |
Return true when the caret is moved when gaining focus | Components/EditableText.h | |
bool GetIsPassword() |
Components/EditableText.h | ||
bool GetIsReadOnly() |
Components/EditableText.h | ||
ETextJustify::Type GetJustification() |
Components/EditableText.h |
|
|
float GetMinimumDesiredWidth() |
Components/EditableText.h | ||
bool GetRevertTextOnEscape() |
Whether to allow the user to back out of changes when they press the escape key | Components/EditableText.h | |
bool GetSelectAllTextOnCommit() |
Whether to select all text when pressing enter to commit changes | Components/EditableText.h | |
bool GetSelectAllTextWhenFocused() |
Whether to select all text when the user clicks to give focus on the widget | Components/EditableText.h | |
FText GetText() |
Gets the widget text | Components/EditableText.h |
|
ETextOverflowPolicy GetTextOverflowPolicy() |
Components/EditableText.h | ||
void SetClearKeyboardFocusOnCommit
(
bool bInClearKeyboardFocusOnCommit |
Set to true to clear keyboard focus when pressing enter to commit changes | Components/EditableText.h | |
void SetEnableIntegratedKeyboard
(
bool InEnableIntegratedKeyboard |
Components/EditableText.h | ||
void SetFont
(
FSlateFontInfo InFontInfo |
Components/EditableText.h |
|
|
void SetFontMaterial
(
UMaterialInterface* InMaterial |
Components/EditableText.h |
|
|
void SetFontOutlineMaterial
(
UMaterialInterface* InMaterial |
Components/EditableText.h |
|
|
void SetHintText
(
FText InHintText |
Components/EditableText.h |
|
|
void SetIsCaretMovedWhenGainFocus
(
bool bIsCaretMovedWhenGainFocus |
When set to true the caret is moved when gaining focus | Components/EditableText.h | |
void SetIsPassword
(
bool InbIsPassword |
Components/EditableText.h |
|
|
void SetIsReadOnly
(
bool InbIsReadyOnly |
Components/EditableText.h |
|
|
void SetJustification
(
ETextJustify::Type InJustification |
Components/EditableText.h |
|
|
void SetKeyboardType
(
EVirtualKeyboardType::Type Type |
Components/EditableText.h | ||
void SetMinimumDesiredWidth
(
float InMinDesiredWidth |
Set the minimum desired width for this text box | Components/EditableText.h |
|
void SetRevertTextOnEscape
(
bool bRevertTextOnEscape |
Set to true to allow the user to back out of changes when they press the escape key | Components/EditableText.h | |
void SetSelectAllTextOnCommit
(
bool bSelectAllTextOnCommit |
Set to true to select all text when pressing enter to commit changes | Components/EditableText.h | |
void SetSelectAllTextWhenFocused
(
bool bSelectAllTextWhenFocused |
Set to true to select all text when the user clicks to give focus on the widget | Components/EditableText.h | |
| Directly sets the widget text. | Components/EditableText.h |
|
|
void SetTextOverflowPolicy
(
ETextOverflowPolicy InOverflowPolicy |
Components/EditableText.h |
|
|
void SetWidgetStyle
(
const FEditableTextStyle& InEditableTextStyle |
Set the style and ensure the visual will be updated accordingly | Components/EditableText.h | |
void ToggleVirtualKeyboard
(
bool bShow |
Function to spawn virtual keyboard on demand | Components/EditableText.h |
|
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/EditableText.h | |
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/EditableText.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/EditableText.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void HandleOnTextChanged
(
const FText& Text |
Components/EditableText.h | ||
void HandleOnTextCommitted
(
const FText& Text, |
Components/EditableText.h | ||
FText K2_Gate_HintText() |
Components/EditableText.h | ||
FText K2_Gate_Text() |
Components/EditableText.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< SWidget > GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. | Components/EditableText.h | |
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/EditableText.h |