Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/EditableTextBox.h |
Include |
#include "Components/EditableTextBox.h" |
class UEditableTextBox : public UWidget
Allows the user to type in custom text. Only permits a single line of text to be entered.
No Children Text Entry
Name | Description | ||
---|---|---|---|
|
AllowContextMenu |
Whether the context menu can be opened |
|
|
ClearKeyboardFocusOnCommit |
Whether to clear keyboard focus when pressing enter to commit changes |
|
|
HintText |
Hint text that appears when there is no text in the text box |
|
|
HintTextDelegate |
A bindable delegate to allow logic to drive the hint text of the widget |
|
|
IsCaretMovedWhenGainFocus |
Workaround as we lose focus when the auto completion closes. |
|
|
IsPassword |
Sets whether this text box is for storing a password |
|
|
IsReadOnly |
Sets whether this text box can actually be modified interactively by the user |
|
|
TEnumAsByte< ET... |
Justification |
How the text should be aligned with the margin. |
|
K2_Cache_HintText |
||
|
K2_Cache_Text |
||
|
TEnumAsByte< EV... |
KeyboardType |
If we're on a platform that requires a virtual keyboard, what kind of keyboard should this widget use? |
|
float |
MinimumDesiredWidth |
Minimum width that a text block should be |
|
TSharedPtr< SEd... |
MyEditableTextBlock |
|
|
OnTextChanged |
Called whenever the text is changed programmatically or interactively by the user |
|
|
OnTextCommitted |
Called whenever the text is committed. |
|
|
OverflowPolicy |
Sets what should happen when text is clipped because the block does not have enough space |
|
|
RevertTextOnEscape |
Whether to allow the user to back out of changes when they press the escape key |
|
|
SelectAllTextOnCommit |
Whether to select all text when pressing enter to commit changes |
|
|
SelectAllTextWhenFocused |
Whether to select all text when the user clicks to give focus on the widget |
|
|
ShapedTextOptions |
Controls how the text within this widget should be shaped. |
|
|
Text |
The text content for this editable text box widget |
|
|
TextDelegate |
A bindable delegate to allow logic to drive the text of the widget |
|
|
VirtualKeyboardDismissAction |
What action should be taken when the virtual keyboard is dismissed? |
|
|
VirtualKeyboardOptions |
Additional options to use for the virtual keyboard summoned by this widget |
|
|
VirtualKeyboardTrigger |
The type of event that will trigger the display of the virtual keyboard |
|
|
WidgetStyle |
The style |
Name | Description | |
---|---|---|
|
UEditableTextBox ( |
Name | Description | ||
---|---|---|---|
|
ClearError() |
||
|
GetText() |
Provide a alternative mechanism for error reporting. |
|
|
HandleOnTextChanged ( |
||
|
HandleOnTextCommitted ( |
||
|
HasError() |
||
|
K2_Gate_HintText() |
||
|
K2_Gate_Text() |
||
|
SetError ( |
||
|
SetForegroundColor ( |
||
|
SetHintText ( |
||
|
SetIsPassword ( |
||
|
SetIsReadOnly ( |
||
|
SetJustification ( |
||
|
SetText ( |
||
|
SetTextOverflowPolicy ( |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. |
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
Name |
Description |
|
---|---|---|
|
FOnEditableTextBoxChangedEvent |
|
|
FOnEditableTextBoxCommittedEvent |
Name | Description | ||
---|---|---|---|
|
BackgroundColor_DEPRECATED |
The color of the background/border around the editable text (overrides Style) |
|
|
Font_DEPRECATED |
Font color and opacity (overrides Style) |
|
|
ForegroundColor_DEPRECATED |
Text color and opacity (overrides Style) |
|
|
Padding_DEPRECATED |
Padding between the box/border and the text widget inside (overrides Style) |
|
|
ReadOnlyForegroundColor_DEPRECATED |
Text color and opacity when read-only (overrides Style) |
|
|
TObjectPtr< USl... |
Style_DEPRECATED |
Style used for the text box |