Choose your operating system:
Windows
macOS
Linux
| FSlateControlledConstruction | ||||||||||
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SEditableTextBox.h |
Include |
#include "Widgets/Input/SEditableTextBox.h" |
class SEditableTextBox : public SBorder
Editable text box widget
Name | Description | ||
---|---|---|---|
|
TAttribute< FSl... |
BackgroundColorOverride |
Background color (overrides style) |
|
TSharedPtr< SHo... |
Box |
Allows for inserting additional widgets that extend the functionality of the text box |
|
TSharedPtr< SEd... |
EditableText |
Editable text widget |
|
TSharedPtr< cla... |
ErrorReporting |
SomeWidget reporting |
|
TAttribute< FSl... |
FocusedForegroundColorOverride |
Focused foreground color (overrides style) |
|
TAttribute< FSl... |
FontOverride |
Font (overrides style) |
|
TAttribute< FSl... |
ForegroundColorOverride |
Foreground color (overrides style) |
|
OnTextChanged |
Called when the text is changed interactively |
|
|
OnTextCommitted |
Called when the user commits their change to the editable text control |
|
|
FOnVerifyTextCh... |
OnVerifyTextChanged |
Callback to verify text when changed. Will return an error message to de problems. |
|
TSharedPtr< SBo... |
PaddingBox |
Box widget that adds padding around the editable text |
|
TAttribute< FMa... |
PaddingOverride |
Padding (overrides style) |
|
TAttribute< FSl... |
ReadOnlyForegroundColorOverride |
Read-only foreground color (overrides style) |
|
const FEditable... |
Style |
Name | Description | |
---|---|---|
|
SEditableTextBox() |
Name | Description | ||
---|---|---|---|
|
AdvanceSearch ( |
Advance the current search to the next match (does nothing if not currently searching) |
|
|
AnyTextSelected() |
Query to see if any text is selected within the document |
|
|
BeginSearch ( |
Begin a new text search (this is called automatically when the bound search text changes) |
|
|
ClearSelection() |
Clear the active text selection |
|
|
Construct ( |
Construct this widget |
|
|
GetSearchText() |
Get the text that is currently being searched for (if any) |
|
|
GetSelectedText() |
Get the currently selected text |
|
|
GetText() |
Returns the text string |
|
|
GoTo ( |
Move the cursor to the specified location |
|
|
GoTo ( |
Move the cursor to the given location in the document |
|
|
HasError() |
||
|
IsPassword() |
||
|
IsReadOnly() |
||
|
OnEditableTextChanged ( |
Callback for the editable text's OnTextChanged event |
|
|
OnEditableTextCommitted ( |
Callback when the editable text is committed. |
|
|
ScrollTo ( |
Scroll to the given location in the document (without moving the cursor) |
|
|
ScrollTo ( |
Scroll to the given location in the document (without moving the cursor) |
|
|
SelectAllText() |
Select all the text in the document |
|
|
SetAllowContextMenu ( |
See the AllowContextMenu attribute |
|
|
SetClearKeyboardFocusOnCommit ( |
Sets whether to clear keyboard focus when pressing enter to commit changes |
|
|
SetError ( |
If InError is a non-empty string the TextBox will the ErrorReporting provided during construction If no error reporting was provided, the TextBox will create a default error reporter. |
|
|
SetError ( |
If InError is a non-empty string the TextBox will the ErrorReporting provided during construction If no error reporting was provided, the TextBox will create a default error reporter. |
|
|
SetFocusedForegroundColor ( |
Sets the text color and opacity when this box has keyboard focus(overrides Style) |
|
|
SetFont ( |
Sets the font used to draw the text |
|
|
SetHintText ( |
See the HintText attribute |
|
|
SetIsCaretMovedWhenGainFocus ( |
Workaround as we loose focus when the auto completion closes. |
|
|
SetIsPassword ( |
See the IsPassword attribute |
|
|
SetIsReadOnly ( |
See the IsReadOnly attribute |
|
|
SetJustification ( |
See Justification attribute |
|
|
SetMinimumDesiredWidth ( |
Sets the minimum width that a text box should be. |
|
|
SetOnKeyCharHandler ( |
Sets the OnKeyCharHandler to provide first chance handling of the SEditableText's OnKeyChar event |
|
|
SetOnKeyDownHandler ( |
Sets the OnKeyDownHandler to provide first chance handling of the SEditableText's OnKeyDown event |
|
|
SetOverflowPolicy ( |
Sets the overflow policy for this text block |
|
|
SetReadOnlyForegroundColor ( |
Sets the text color and opacity when read-only (overrides Style) |
|
|
SetRevertTextOnEscape ( |
Sets whether to allow the user to back out of changes when they press the escape key |
|
|
SetSearchText ( |
Set the text that is currently being searched for (if any) |
|
|
SetSelectAllTextOnCommit ( |
Sets whether to select all text when pressing enter to commit changes |
|
|
SetSelectAllTextWhenFocused ( |
Sets whether to select all text when the user clicks to give focus on the widget |
|
|
SetSelectWordOnMouseDoubleClick ( |
Sets whether to select select word on mouse double click |
|
|
SetStyle ( |
See attribute Style |
|
|
SetText ( |
Sets the text string currently being edited |
|
|
SetTextBoxBackgroundColor ( |
Sets the color of the background/border around the editable text (overrides Style) |
|
|
SetTextBoxForegroundColor ( |
Sets the text color and opacity (overrides Style) |
|
|
SetTextFlowDirection ( |
See TextFlowDirection attribute |
|
|
SetTextShapingMethod ( |
See TextShapingMethod attribute |
|
|
SetVirtualKeyboardDismissAction |
Set the VirtualKeyboardDismissAction attribute |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
CreateAccessibleWidget() |
|
|
GetDefaultAccessibleText ( |
Assign AccessibleText with a default value that can be used when AccessibleBehavior is set to Auto or Custom. |
|
|
HasKeyboardFocus() |
Checks to see if this widget currently has the keyboard focus |
|
|
OnFocusReceived ( |
KEY INPUT Called when focus is given to this widget. This event does not bubble. |
|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Name |
Description |
|
---|---|---|
|
FArguments |