| SWidget | ||
| ISlateEditableTextWidget
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Text/SMultiLineEditableText.h |
Include |
#include "Widgets/Text/SMultiLineEditableText.h" |
class SMultiLineEditableText :
public SWidget,
public ISlateEditableTextWidget
An editable text widget that supports multiple lines and soft word-wrapping.
Name | Description | ||
---|---|---|---|
|
TWeakPtr< FActi... |
ActiveTickTimer |
The timer that is actively driving this widget to Tick() even when Slate is idle |
|
float |
AmountScrolledWhileRightMouseDown |
How much we scrolled while RMB was being held |
|
TAttribute< boo... |
bAllowContextMenu |
Whether the context menu can be opened |
|
TAttribute< boo... |
bAllowMultiLine |
Whether to allow multi-line text |
|
TAttribute< boo... |
bClearKeyboardFocusOnCommit |
True if we want the text control to lose focus on an text commit/revert events |
|
TAttribute< boo... |
bClearTextSelectionOnFocusLoss |
Whether to clear text selection when focus is lost |
|
TAttribute< boo... |
bIsReadOnly |
Sets whether this text box can actually be modified interactively by the user |
|
bIsSoftwareCursor |
Whether a software cursor is currently active |
|
|
TAttribute< boo... |
bRevertTextOnEscape |
True if any changes should be reverted if we receive an escape key |
|
TAttribute< boo... |
bSelectAllTextWhenFocused |
Whether to select all text when the user clicks to give focus on the widget |
|
TAttribute< boo... |
bSelectWordOnMouseDoubleClick |
Whether to select work on mouse double click |
|
TUniquePtr< FSl... |
EditableTextLayout |
The text layout that deals with the editable text |
|
TSharedPtr< SSc... |
HScrollBar |
The horizontal scroll bar widget |
|
TSharedPtr< FEx... |
MenuExtender |
Menu extender for right-click context menu |
|
ModiferKeyForNewLine |
The optional modifier key necessary to create a newline when typing into the editor. |
|
|
OnContextMenuOpening |
Delegate to call before a context menu is opened |
|
|
OnCursorMovedCallback |
Called when the cursor is moved within the text area |
|
|
OnHScrollBarUserScrolled |
Called whenever the horizontal scrollbar is moved by the user |
|
|
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. |
|
|
OnVScrollBarUserScrolled |
Called whenever the vertical scrollbar is moved by the user |
|
|
SoftwareCursorPosition |
The current position of the software cursor |
|
|
TAttribute< EVi... |
VirtualKeyboardDismissAction |
The message action to take when the virtual keyboard is dismissed by the user |
|
VirtualKeyboardOptions |
Options to use for the virtual keyboard summoned by this widget |
|
|
TAttribute< EVi... |
VirtualKeyboardTrigger |
The type of event that will trigger the display of the virtual keyboard |
|
TSharedPtr< SSc... |
VScrollBar |
The vertical scroll bar widget |
Name | Description | |
---|---|---|
|
SMultiLineEditableText() |
Name | Description | |
---|---|---|
|
~SMultiLineEditableText() |
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 |
|
|
ApplyToSelection ( |
Apply the given style to the currently selected text (or insert a new run at the current cursor position if no text is selected) |
|
|
BeginSearch ( |
Begin a new text search (this is called automatically when the bound search text changes) |
|
|
ClearSelection() |
Clear the active text selection |
|
|
Construct ( |
||
|
ForceScroll ( |
Force a single scroll operation. |
|
|
GetCurrentTextLine ( |
Fill OutTextLine with the text line where the current cursor location is at |
|
|
GetHintText() |
Get the text that appears when there is no text in the text box |
|
|
TSharedPtr< ... |
GetHScrollBar() |
Get the horizontal scroll bar widget |
|
GetPlainText() |
Returns the plain text string without richtext formatting |
|
|
TSharedPtr< ... |
GetRunUnderCursor() |
Get the run currently under the cursor, or null if there is no run currently under the cursor |
|
GetSearchText() |
Get the text that is currently being searched for (if any) |
|
|
GetSelectedRuns() |
Get the runs currently that are current selected, some of which may be only partially selected |
|
|
GetSelectedText() |
Get the currently selected text |
|
|
GetText() |
Returns the text string |
|
|
TSharedPtr< ... |
GetVScrollBar() |
Get the vertical scroll bar widget |
|
GoTo ( |
Move the cursor specified location |
|
|
GoTo ( |
Move the cursor to the given location in the document (will also scroll to this point) |
|
|
InsertRunAtCursor ( |
Insert the given run at the current cursor position |
|
|
InsertTextAtCursor ( |
Insert the given text at the current cursor position, correctly taking into account new line characters |
|
|
InsertTextAtCursor ( |
Insert the given text at the current cursor position, correctly taking into account new line characters |
|
|
IsRightClickScrolling() |
Return whether a RMB+Drag scroll operation is taking place |
|
|
OnHScrollBarMoved ( |
||
|
OnVScrollBarMoved ( |
||
|
Refresh() |
Refresh this editable text immediately, rather than wait for the usual caching mechanisms to take affect on the text Tick |
|
|
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 |
|
|
SetAutoWrapText ( |
See AutoWrapText attribute |
|
|
SetClearKeyboardFocusOnCommit ( |
Sets whether to clear keyboard focus when pressing enter to commit changes |
|
|
SetClearTextSelectionOnFocusLoss ( |
Sets whether to clear text selection when focus is lost |
|
|
SetFont ( |
See attribute Font |
|
|
SetHintText ( |
Sets the text that appears when there is no text in the text box |
|
|
SetIsReadOnly ( |
Sets the ReadOnly attribute |
|
|
SetJustification ( |
See Justification attribute |
|
|
SetLineHeightPercentage ( |
See LineHeightPercentage attribute |
|
|
SetMargin ( |
See Margin attribute |
|
|
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 |
|
|
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) |
|
|
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 for this text block |
|
|
SetTextFlowDirection ( |
See TextFlowDirection attribute |
|
|
SetTextShapingMethod ( |
See TextShapingMethod attribute |
|
|
SetTextStyle ( |
See attribute TextStyle |
|
|
SetVirtualKeyboardDismissAction |
Set the VirtualKeyboardDismissAction attribute |
|
|
SetWrappingPolicy ( |
Set WrappingPolicy attribute |
|
|
SetWrapTextAt ( |
See WrapTextAt attribute |
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. |
|
|
FChildren &#... |
GetChildren() |
Every widget that has children must implement this method. |
|
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. |
|
|
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. |
|
|
OnMouseWheel ( |
Called when the mouse wheel is spun. This event is bubbled. |
|
|
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 |
Name |
Description |
---|---|
FOnCursorMoved |
Called when the cursor is moved within the text area |