Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UEditableTextBox
- UEditorUtilityEditableTextBox
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/EditableTextBox.h |
Include | #include "Components/EditableTextBox.h" |
Syntax
class UEditableTextBox : public UWidget
Remarks
Allows the user to type in custom text. Only permits a single line of text to be entered.
- No Children
- Text Entry
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< SEditableTextBox > | MyEditableTextBlock | |
![]() |
FOnEditableTextBoxChangedEvent | OnTextChanged | Called whenever the text is changed programmatically or interactively by the user |
![]() |
FOnEditableTextBoxCommittedEvent | 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 to use for the virtual keyboard summoned by this widget |
![]() |
EVirtualKeyboardTrigger | VirtualKeyboardTrigger | The type of event that will trigger the display of the virtual keyboard |
![]() |
FEditableTextBoxStyle | WidgetStyle | The style |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UEditableTextBox
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | ClearError () |
|
![]() ![]() |
bool | Whether to clear keyboard focus when pressing enter to commit changes | |
![]() ![]() |
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 | Return true when this text cannot be modified interactively by the user | |
![]() ![]() |
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 () |
Provide a alternative mechanism for error reporting. Gets the widget text |
![]() ![]() |
ETextOverflowPolicy | ||
![]() ![]() |
void | HandleOnTextChanged
(
const FText& Text |
|
![]() ![]() |
void | HandleOnTextCommitted
(
const FText& Text, |
|
![]() ![]() |
bool | HasError () |
|
![]() |
FText | ||
![]() |
FText | K2_Gate_Text () |
|
![]() |
void | SetClearKeyboardFocusOnCommit
(
bool bClearKeyboardFocusOnCommit |
Set to true to clear keyboard focus when pressing enter to commit changes |
![]() |
void | ||
![]() |
void | SetForegroundColor
(
FLinearColor color |
|
![]() |
void | SetHintText
(
FText InText |
Sets the Hint text that appears when there is no text in the text box |
![]() |
void | SetIsCaretMovedWhenGainFocus
(
bool bIsCaretMovedWhenGainFocus |
When set to true the caret is moved when gaining focus |
![]() |
void | SetIsPassword
(
bool bIsPassword |
|
![]() |
void | SetIsReadOnly
(
bool bReadOnly |
Sets the Text as Readonly to prevent it from being modified interactively by the user |
![]() |
void | SetJustification
(
ETextJustify::Type InJustification |
|
![]() |
void | SetMinDesiredWidth
(
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 |
Set the text overflow policy for this text box. |
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 |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnEditableTextBoxChangedEvent | ||
![]() |
FOnEditableTextBoxCommittedEvent |
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. |