Navigation
API > API/Runtime > API/Runtime/UMG
Allows the user to type in custom text. Only permits a single line of text to be entered.
- No Children
- Text Entry
| Name | UEditableTextBox |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/EditableTextBox.h |
| Include Path | #include "Components/EditableTextBox.h" |
Syntax
UCLASS (Meta=(DisplayName="Text Box"), MinimalAPI)
class UEditableTextBox : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UEditableTextBox
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEditableTextBox
(
const FObjectInitializer& ObjectInitializer |
Components/EditableTextBox.h |
Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowContextMenu | bool | Whether the context menu can be opened | Components/EditableTextBox.h |
|
| ClearKeyboardFocusOnCommit | bool | Whether to clear keyboard focus when pressing enter to commit changes | Components/EditableTextBox.h |
|
| HintText | FText | Hint text that appears when there is no text in the text box | Components/EditableTextBox.h |
|
| HintTextDelegate | FGetText | A bindable delegate to allow logic to drive the hint text of the widget | Components/EditableTextBox.h | |
| IsCaretMovedWhenGainFocus | bool | Workaround as we lose focus when the auto completion closes. | Components/EditableTextBox.h |
|
| IsPassword | bool | Sets whether this text box is for storing a password | Components/EditableTextBox.h |
|
| IsReadOnly | bool | Sets the Text Box as Readonly to prevent it from being modified interactively by the user | Components/EditableTextBox.h |
|
| Justification | TEnumAsByte< ETextJustify::Type > | How the text should be aligned with the margin. | Components/EditableTextBox.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/EditableTextBox.h |
|
| MinimumDesiredWidth | float | The minimum desired size for the text | Components/EditableTextBox.h |
|
| OnTextChanged | FOnEditableTextBoxChangedEvent | Called whenever the text is changed programmatically or interactively by the user | Components/EditableTextBox.h |
|
| OnTextCommitted | FOnEditableTextBoxCommittedEvent | Called whenever the text is committed. | Components/EditableTextBox.h |
|
| OverflowPolicy | ETextOverflowPolicy | Sets what happens to text that is clipped and doesn't fit within the clip rect for this widget | Components/EditableTextBox.h |
|
| RevertTextOnEscape | bool | Whether to allow the user to back out of changes when they press the escape key | Components/EditableTextBox.h |
|
| SelectAllTextOnCommit | bool | Whether to select all text when pressing enter to commit changes | Components/EditableTextBox.h |
|
| SelectAllTextWhenFocused | bool | Whether to select all text when the user clicks to give focus on the widget | Components/EditableTextBox.h |
|
| ShapedTextOptions | FShapedTextOptions | Controls how the text within this widget should be shaped. | Components/EditableTextBox.h |
|
| Text | FText | The text content for this editable text box widget | Components/EditableTextBox.h |
|
| TextDelegate | FGetText | A bindable delegate to allow logic to drive the text of the widget | Components/EditableTextBox.h | |
| VirtualKeyboardDismissAction | EVirtualKeyboardDismissAction | What action should be taken when the virtual keyboard is dismissed? | Components/EditableTextBox.h |
|
| VirtualKeyboardOptions | FVirtualKeyboardOptions | Additional options to use for the virtual keyboard summoned by this widget | Components/EditableTextBox.h |
|
| VirtualKeyboardTrigger | EVirtualKeyboardTrigger | The type of event that will trigger the display of the virtual keyboard | Components/EditableTextBox.h |
|
| WidgetStyle | FEditableTextBoxStyle | The style | Components/EditableTextBox.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsFontDeprecationDone | bool | Components/EditableTextBox.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearError() |
Components/EditableTextBox.h |
|
|
bool GetClearKeyboardFocusOnCommit() |
Whether to clear keyboard focus when pressing enter to commit changes | Components/EditableTextBox.h | |
FText GetHintText() |
Gets the Hint text that appears when there is no text in the text box | Components/EditableTextBox.h | |
bool GetIsCaretMovedWhenGainFocus() |
Return true when the caret is moved when gaining focus | Components/EditableTextBox.h | |
bool GetIsPassword() |
Components/EditableTextBox.h | ||
bool GetIsReadOnly() |
Return true when this text cannot be modified interactively by the user | Components/EditableTextBox.h | |
ETextJustify::Type GetJustification() |
Components/EditableTextBox.h | ||
float GetMinimumDesiredWidth() |
Components/EditableTextBox.h | ||
bool GetRevertTextOnEscape() |
Whether to allow the user to back out of changes when they press the escape key | Components/EditableTextBox.h | |
bool GetSelectAllTextOnCommit() |
Whether to select all text when pressing enter to commit changes | Components/EditableTextBox.h | |
bool GetSelectAllTextWhenFocused() |
Whether to select all text when the user clicks to give focus on the widget | Components/EditableTextBox.h | |
FText GetText() |
Provide a alternative mechanism for error reporting. Gets the widget text | Components/EditableTextBox.h |
|
ETextOverflowPolicy GetTextOverflowPolicy() |
Components/EditableTextBox.h | ||
const FEditableTextBoxStyle & GetWidgetStyle() |
Components/EditableTextBox.h | ||
bool HasError() |
Components/EditableTextBox.h |
|
|
void SetClearKeyboardFocusOnCommit
(
bool bClearKeyboardFocusOnCommit |
Set to true to clear keyboard focus when pressing enter to commit changes | Components/EditableTextBox.h | |
void SetError
(
FText InError |
Components/EditableTextBox.h |
|
|
void SetForegroundColor
(
FLinearColor color |
Components/EditableTextBox.h |
|
|
void SetHintText
(
FText InText |
Sets the Hint text that appears when there is no text in the text box | Components/EditableTextBox.h |
|
void SetIsCaretMovedWhenGainFocus
(
bool bIsCaretMovedWhenGainFocus |
When set to true the caret is moved when gaining focus | Components/EditableTextBox.h | |
void SetIsPassword
(
bool bIsPassword |
Components/EditableTextBox.h |
|
|
void SetIsReadOnly
(
bool bReadOnly |
Sets the Text as Readonly to prevent it from being modified interactively by the user | Components/EditableTextBox.h |
|
void SetJustification
(
ETextJustify::Type InJustification |
Components/EditableTextBox.h |
|
|
void SetMinDesiredWidth
(
float InMinDesiredWidth |
Set the minimum desired width for this text box | Components/EditableTextBox.h | |
void SetRevertTextOnEscape
(
bool bRevertTextOnEscape |
Set to true to allow the user to back out of changes when they press the escape key | Components/EditableTextBox.h | |
void SetSelectAllTextOnCommit
(
bool bSelectAllTextOnCommit |
Set to true to select all text when pressing enter to commit changes | Components/EditableTextBox.h | |
void SetSelectAllTextWhenFocused
(
bool bSelectAllTextWhenFocused |
Set to true to select all text when the user clicks to give focus on the widget | Components/EditableTextBox.h | |
| Directly sets the widget text. | Components/EditableTextBox.h |
|
|
void SetTextOverflowPolicy
(
ETextOverflowPolicy InOverflowPolicy |
Set the text overflow policy for this text box. | Components/EditableTextBox.h |
|
void SetWidgetStyle
(
const FEditableTextBoxStyle& InStyle |
Components/EditableTextBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/EditableTextBox.h | |
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/EditableTextBox.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/EditableTextBox.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
Components/EditableTextBox.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void HandleOnTextChanged
(
const FText& Text |
Components/EditableTextBox.h | ||
virtual void HandleOnTextCommitted
(
const FText& Text, |
Components/EditableTextBox.h | ||
FText K2_Gate_HintText() |
Components/EditableTextBox.h | ||
FText K2_Gate_Text() |
Components/EditableTextBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< SWidget > GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. | Components/EditableTextBox.h | |
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/EditableTextBox.h |