Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/EditableText.h |
Include | #include "Components/EditableText.h" |
Syntax
UCLASS (MinimalAPI)
class UEditableText : public UWidget
Remarks
Editable text box widget
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | AllowContextMenu | Whether the context menu can be opened |
![]() ![]() ![]() ![]() ![]() |
bool | ClearKeyboardFocusOnCommit | Whether to clear keyboard focus when pressing enter to commit changes |
![]() ![]() ![]() ![]() ![]() |
FText | HintText | Hint text that appears when there is no text in the text box |
![]() ![]() |
FGetText | HintTextDelegate | A bindable delegate to allow logic to drive the hint text of the widget |
![]() ![]() ![]() ![]() ![]() |
bool | IsCaretMovedWhenGainFocus | When set to true the caret is moved when gaining focus |
![]() ![]() ![]() ![]() ![]() |
bool | IsPassword | Sets whether this text box is for storing a password |
![]() ![]() ![]() ![]() ![]() |
bool | IsReadOnly | Sets whether this text box can actually be modified interactively by the user |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< ETextJustify::Type > | Justification | How the text should be aligned with the margin. |
![]() |
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? |
![]() ![]() ![]() ![]() ![]() |
float | MinimumDesiredWidth | The minimum desired Width for the text |
![]() |
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. |
![]() ![]() ![]() ![]() ![]() |
ETextOverflowPolicy | OverflowPolicy | Sets what happens to text that is clipped and doesn't fit within the clip rect for this widget |
![]() ![]() ![]() ![]() ![]() |
bool | RevertTextOnEscape | Whether to allow the user to back out of changes when they press the escape key |
![]() ![]() ![]() ![]() ![]() |
bool | SelectAllTextOnCommit | Whether to select all text when pressing enter to commit changes |
![]() ![]() ![]() ![]() ![]() |
bool | SelectAllTextWhenFocused | Whether to select all text when the user clicks to give focus on the widget |
![]() ![]() ![]() ![]() |
FShapedTextOptions | ShapedTextOptions | Controls how the text within this widget should be shaped. |
![]() ![]() ![]() ![]() ![]() |
FText | Text | The text content for this editable text box widget |
![]() ![]() |
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
(
UPARAM(DisplayName="IsPassword") bool InbIsPassword |
|
![]() ![]() ![]() |
void | SetIsReadOnly
(
UPARAM(DisplayName="ReadyOnly") 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 | SetText
(
FText InText |
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 | |
---|---|---|---|
![]() ![]() |
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 |