Choose your operating system:
Windows
macOS
Linux
| SWidget | ||
| ISlateEditableTextWidget
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SEditableText.h |
Include |
#include "Widgets/Input/SEditableText.h" |
class SEditableText :
public SWidget,
public ISlateEditableTextWidget
Editable text widget
Name | Description | ||
---|---|---|---|
|
TWeakPtr< FActi... |
ActiveTickTimer |
The timer that is actively driving this widget to Tick() even when Slate is idle |
|
TAttribute< con... |
BackgroundImageSelected |
Background image for the selected text |
|
TAttribute< boo... |
bAllowContextMenu |
Whether to disable the context menu |
|
TAttribute< boo... |
bClearKeyboardFocusOnCommit |
Whether to clear keyboard focus when pressing enter to commit changes |
|
TAttribute< boo... |
bIsCaretMovedWhenGainFocus |
Workaround as we loose focus when the auto completion closes. |
|
TAttribute< boo... |
bIsPassword |
Sets whether this text box is for storing a password |
|
TAttribute< boo... |
bIsReadOnly |
Sets whether this text box can actually be modified interactively by the user |
|
TAttribute< boo... |
bRevertTextOnEscape |
Whether to allow the user to back out of changes when they press the escape key |
|
TAttribute< boo... |
bSelectAllTextOnCommit |
Whether to select all text when pressing enter to commit changes |
|
TAttribute< boo... |
bSelectAllTextWhenFocused |
Whether to select all text when the user clicks to give focus on the widget |
|
TAttribute< boo... |
bSelectWordOnMouseDoubleClick |
Whether to select word on mouse double click |
|
TAttribute< FSl... |
ColorAndOpacity |
Text color and opacity |
|
TUniquePtr< FSl... |
EditableTextLayout |
The text layout that deals with the editable text |
|
TAttribute< FSl... |
Font |
The font used to draw the text |
|
TSharedPtr< FEx... |
MenuExtender |
Menu extender for right-click context menu |
|
TAttribute< flo... |
MinDesiredWidth |
Prevents the editable text from being smaller than desired in certain cases (e.g. when it is empty) |
|
OnContextMenuOpening |
Delegate to call before a context menu is opened |
|
|
OnIsTypedCharValid |
Called when a character is typed and we want to know if the text field supports typing this character. |
|
|
FOnKeyChar |
OnKeyCharHandler |
Callback delegate to have first chance handling of the OnKeyChar event |
|
FOnKeyDown |
OnKeyDownHandler |
Callback delegate to have first chance handling of the OnKeyDown event |
|
OnTextChangedCallback |
Called whenever the text is changed programmatically or interactively by the user |
|
|
OnTextCommittedCallback |
Called whenever the text is committed. |
|
|
TSharedPtr< FPl... |
PlainTextMarshaller |
Text marshaller used by the editable text layout |
|
TAttribute< EVi... |
VirtualKeyboardDismissAction |
The message action to take when the virtual keyboard is dismissed by the user |
|
VirtualKeyboardOptions |
Additional options used by the virtual keyboard summoned by this widget |
|
|
TAttribute< EVi... |
VirtualKeyboardTrigger |
The type of event that will trigger the display of the virtual keyboard |
|
TAttribute< EKe... |
VirtualKeyboardType |
The type of virtual keyboard to use for editing this text on mobile |
|
TSharedPtr< IBr... |
WordBreakIterator |
The iterator to use to detect word boundaries |
Name | Description | |
---|---|---|
|
SEditableText() |
Constructor |
Name | Description | |
---|---|---|
|
~SEditableText() |
Destructor |
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 |
|
|
GetHintText() |
Get the text that appears when there is no text in the text box |
|
|
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 specified location |
|
|
GoTo ( |
Move the cursor to the given location in the document (will also scroll to this point) |
|
|
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 |
|
|
SetColorAndOpacity ( |
See the ColorAndOpacity attribute |
|
|
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 |
|
|
SetMinDesiredWidth ( |
Sets the minimum width that a text block should be. |
|
|
SetOnKeyCharHandler ( |
Sets the OnKeyCharHandler to provide first chance handling of the OnKeyChar event |
|
|
SetOnKeyDownHandler ( |
Sets the OnKeyDownHandler to provide first chance handling of the OnKeyDown event |
|
|
SetOverflowPolicy ( |
Sets the overflow policy for this text block |
|
|
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 word on the mouse double click |
|
|
SetText ( |
Sets the text currently being edited |
|
|
SetTextFlowDirection ( |
See TextFlowDirection attribute |
|
|
SetTextShapingMethod ( |
See TextShapingMethod attribute |
|
|
SetVirtualKeyboardDismissAction |
Set the VirtualKeyboardDismissAction attribute |
|
|
SynchronizeTextStyle() |
Synchronize the text style currently set (including from overrides) and update the text layout if required |
Name | Description | ||
---|---|---|---|
|
CacheDesiredSize ( |
The system calls this method. |
|
|
ComputeDesiredSize ( |
Compute the ideal size necessary to display this widget. |
|
|
ComputeVolatility() |
Recomputes the volatility of the widget. |
|
|
TSharedRef< ... |
CreateAccessibleWidget() |
|
|
FChildren &#... |
GetChildren() |
Returns the useful children (if any) of this widget. |
|
GetDefaultAccessibleText ( |
Assign AccessibleText with a default value that can be used when AccessibleBehavior is set to Auto or Custom. |
|
|
const FSlate... |
GetFocusBrush() |
|
|
IsInteractable() |
||
|
OnArrangeChildren ( |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. |
|
|
OnCursorQuery ( |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. |
|
|
OnDragOver ( |
Called during drag and drop when the the mouse is being dragged over a widget. |
|
|
OnDrop ( |
Called when the user is dropping something onto a widget; terminates drag and drop. |
|
|
OnFocusLost ( |
Called when this widget loses focus. This event does not bubble. |
|
|
OnFocusReceived ( |
KEY INPUT Called when focus is given to this widget. This event does not bubble. |
|
|
OnKeyChar ( |
Called after a character is entered while this widget has keyboard focus |
|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
OnKeyUp |
Called after a key is released when this widget has focus |
|
|
OnMouseButtonDoubleClick ( |
Called when a mouse button is double clicked. Override this in derived classes. |
|
|
OnMouseButtonDown ( |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnMouseMove ( |
The system calls this method to notify the widget that a mouse moved within it. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
|
|
Tick ( |
Ticks this widget with Geometry. |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
BuildContextMenuContent() |
Build the context menu content to use for this widget (if any) |
|
CanInsertCarriageReturn() |
Are we currently able to insert a carriage return? (some widgets have modifier keys that need to be pressed) |
|
|
CanTypeCharacter ( |
Are we able to insert the given character into our text? |
|
|
EnsureActiveTick() |
Ensure that we will get a Tick() soon (either due to having active focus, or something having changed progmatically and requiring an update) Does nothing if the active tick timer is already enabled |
|
|
TSharedRef< ... |
GetSlateWidget() |
Get the Slate widget this interface is representing (may not be called during destruction) |
|
TSharedPtr< ... |
GetSlateWidgetPtr() |
Get the Slate widget this interface is representing (may be null during destruction) |
|
EVirtualKeyb... |
GetVirtualKeyboardDismissAction() |
Get the message action to take when the virtual keyboard is dismissed by the user |
|
FVirtualKeyb... |
GetVirtualKeyboardOptions() |
Get the options for the virtual keyboard used for this widget |
|
EVirtualKeyb... |
GetVirtualKeyboardTrigger() |
Get the type of event that will trigger the display of the virtual keyboard |
|
EKeyboardTyp... |
GetVirtualKeyboardType() |
Get the type of virtual keyboard to use for this widget |
|
IsMultiLineTextEdit() |
Is the text edit multi-line aware? |
|
|
IsTextPassword() |
Is the text displaying a password and should be obscured? |
|
|
IsTextReadOnly() |
Is the text currently read-only? |
|
|
OnCursorMoved ( |
Called when the cursor is moved within the text area |
|
|
OnTextChanged ( |
Called when the text has been changed by an edit operation |
|
|
OnTextCommitted ( |
Called when the text control has committed its current edit changes |
|
|
ShouldClearKeyboardFocusOnCommit() |
Should we clear the keyboard focus when the user commits text to this widget? |
|
|
ShouldClearTextSelectionOnFocusLoss() |
Should the text clear its selection the widget loses focus? |
|
|
ShouldJumpCursorToEndWhenFocused() |
Should the cursor be jumped to the end of the document when the widget gains focus? |
|
|
ShouldRevertTextOnEscape() |
Should we revert the text back to its original state when the user presses escape? |
|
|
ShouldSelectAllTextOnCommit() |
Should we select all text when the user commits text to this widget? |
|
|
ShouldSelectAllTextWhenFocused() |
Should the text be selected when the widget gains focus? |
|
|
ShouldSelectWordOnMouseDoubleClick() |
Should we select word on mouse double click? |
|
|
float |
UpdateAndClampHorizontalScrollBar ( |
Called when the fraction and offset of the horizontal scroll area has been recalculated. |
|
float |
UpdateAndClampVerticalScrollBar ( |
Called when the fraction and offset of the vertical scroll area has been recalculated. |
Name |
Description |
|
---|---|---|
|
FArguments |