Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextLayout.h |
Include |
#include "Widgets/Text/SlateEditableTextLayout.h" |
class FSlateEditableTextLayout
Class to handle the cached layout of SEditableText/SMultiLineEditableText by proxying around a FTextLayout
Name | Description | |
---|---|---|
|
FSlateEditableTextLayout ( |
Name | Description | |
---|---|---|
|
~FSlateEditableTextLayout() |
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) |
|
|
BeginEditTransation() |
Called to begin an undoable editable text transaction |
|
|
BeginSearch ( |
Begin a new text search (this is called automatically when BoundSearchText changes) |
|
|
TSharedRef< ... |
BuildDefaultContextMenu ( |
|
|
CacheDesiredSize ( |
||
|
CanExecuteCopy() |
Are we able to copy the currently selected text? |
|
|
CanExecuteCut() |
Are we able to cut the currently selected text? |
|
|
CanExecuteDelete() |
Are we able to delete the currently selected text? |
|
|
CanExecutePaste() |
Are we able to paste the text from the clipboard into this document? |
|
|
CanExecuteRedo() |
Are we currently able to execute a redo action? |
|
|
CanExecuteSelectAll() |
Are we able to execute the "Select All" command? |
|
|
CanExecuteUndo() |
Are we currently able to execute an undo action? |
|
|
ClearSelection() |
Clear the active text selection |
|
|
ClearUndoStates() |
Clear the current undo stack |
|
|
ComputeDesiredSize ( |
||
|
ComputeVolatility() |
||
|
CopySelectedTextToClipboard() |
Copy the currently selected text and place it on the clipboard |
|
|
CutSelectedTextToClipboard() |
Cut the currently selected text and place it on the clipboard |
|
|
DeleteSelectedText() |
Delete any currently selected text |
|
|
EndEditTransaction() |
Called to end an undoable editable text transaction |
|
|
ForceRefreshTextLayout ( |
Force the text layout to be updated from the marshaller |
|
|
GetAutoWrapText() |
Returns whether or not we are auto wrapping text |
|
|
GetCharacterAt ( |
Get the character at Location |
|
|
FChildren &#... |
GetChildren() |
|
|
float |
GetComputedWrappingWidth() |
Returns the computed wrap location for this layout |
|
GetCurrentTextLine ( |
Fill OutTextLine with the text line where the current cursor location is at |
|
|
FTextLocatio... |
GetCursorLocation() |
Get the interaction position of the cursor (where to insert, delete, etc, text from/to) |
|
GetEditableText() |
Gets the current editable text for this text block |
|
|
GetHintText() |
||
|
GetPlainText() |
Get the plain text string without rich-text formatting |
|
|
TSharedPtr< ... |
GetRunUnderCursor() |
Get the run currently under the cursor, or null if there is no run currently under the cursor |
|
GetScrollOffset() |
Get the absolute scroll offset value |
|
|
GetSearchText() |
||
|
GetSelectedRuns() |
Get the runs currently that are current selected, some of which may be only partially selected |
|
|
GetSelectedText() |
Get the currently selected text |
|
|
GetSize() |
||
|
GetText() |
||
|
TSharedRef< ... |
GetTextInputMethodContext() |
Get the IME context for this text layout |
|
const FTextB... |
GetTextStyle() |
|
|
TSharedRef< ... |
GetVirtualKeyboardEntry() |
Get the virtual keyboard handler for this text layout |
|
GoTo ( |
Move the cursor to the given location in the document (will also scroll to this point) |
|
|
GoTo ( |
Move the cursor specified location |
|
|
HandleBackspace() |
Called to handle a backspace action acting on the current selection or at the cursor position |
|
|
HandleCarriageReturn ( |
Called to handle a carriage return action acting on the current selection or at the cursor position |
|
|
HandleDelete() |
Called to handle a delete action acting on the current selection or at the cursor position |
|
|
HandleEscape() |
Called to handle an escape action acting on the current selection |
|
|
HandleFocusLost ( |
Called when our parent widget loses focus |
|
|
HandleFocusReceived ( |
Called when our parent widget receives focus |
|
|
HandleKeyChar ( |
Called to handle an OnKeyChar event from our parent widget |
|
|
HandleKeyDown ( |
Called to handle an OnKeyDown event from our parent widget |
|
|
HandleKeyUp ( |
Called to handle an OnKeyUp event from our parent widget |
|
|
HandleMouseButtonDoubleClick ( |
Called to handle an OnMouseButtonDoubleClick event from our parent widget |
|
|
HandleMouseButtonDown ( |
Called to handle an OnMouseButtonDown event from our parent widget |
|
|
HandleMouseButtonUp ( |
Called to handle an OnMouseButtonUp event from our parent widget |
|
|
HandleMouseMove ( |
Called to handle an OnMouseMove event from our parent widget |
|
|
HandleTypeChar ( |
Called to handle a typing a character on the current selection or at the cursor position |
|
|
HasActiveContextMenu() |
||
|
HasTextChangedFromOriginal() |
Returns whether the current text varies from the original |
|
|
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 |
|
|
IsAtBeginningOfDocument ( |
Are we at the beginning of all the text. |
|
|
IsAtBeginningOfLine ( |
Is this location the beginning of a line |
|
|
IsAtEndOfDocument ( |
Are we at the end of all the text. |
|
|
IsAtEndOfLine ( |
Is this location the end of a line. |
|
|
IsAtWordStart ( |
Are we currently at the beginning of a word |
|
|
IsTextSelectedAt ( |
Query to see if the text under the given position is currently selected (the position is local to the text layout space) |
|
|
IsTextSelectedAt |
Query to see if the text under the given position is currently selected |
|
|
JumpTo ( |
Jump the cursor to the given location in the document |
|
|
LoadText() |
||
|
MakeUndoState |
Create an undo state that reflects the current state of the document |
|
|
MoveCursor ( |
Move the cursor in the document using the specified move method |
|
|
OnArrangeChildren ( |
||
|
OnPaint ( |
||
|
PasteTextFromClipboard() |
Paste the text from the clipboard into this document |
|
|
PushUndoState ( |
Push the given undo state onto the undo stack |
|
|
Redo() |
Execute a redo action |
|
|
Refresh() |
Refresh this editable text immediately, rather than wait for the usual caching mechanisms to take affect on the text Tick |
|
|
RemoveCursorHighlight() |
Remove any active cursor highlights |
|
|
RestoreOriginalText() |
Restores the text to the original state |
|
|
SaveText ( |
||
|
FTextLocatio... |
ScanForWordBoundary ( |
Find the closest word boundary |
|
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 |
|
|
SelectWordAt ( |
Select the word under the given position (the position is local to the text layout space) |
|
|
SelectWordAt |
Select the word under the given position |
|
|
SetAutoWrapText ( |
Set whether to wrap text automatically based on the widget's computed horizontal space |
|
|
SetCompositionBrush ( |
Set the brush to use when drawing the composition highlight |
|
|
SetCursorBrush ( |
Set the brush to use when drawing the cursor |
|
|
SetDebugSourceInfo ( |
Set the information used to help identify who owns this text layout in the case of an error |
|
|
SetEditableText |
Sets the current editable text for this text block |
|
|
SetHintText ( |
||
|
SetHorizontalScrollFraction ( |
Update the horizontal scroll amount from the given fraction |
|
|
SetJustification ( |
Set how the text should be aligned with the margin |
|
|
SetLineHeightPercentage ( |
Set the amount to scale each lines height by |
|
|
SetMargin ( |
Set the amount of blank space left around the edges of text area |
|
|
SetOverflowPolicy ( |
Set the text overflow policy that should be used to determine what happens to clipped text |
|
|
SetScrollOffset |
Set the absolute scroll offset value |
|
|
SetSearchText ( |
||
|
SetText ( |
||
|
SetTextFlowDirection ( |
Set the text flow direction that the internal text layout should use |
|
|
SetTextShapingMethod ( |
Set the text shaping method that the internal text layout should use |
|
|
SetTextStyle ( |
||
|
SetTextWrapping ( |
Set the wrapping to use for this document |
|
|
SetVerticalScrollFraction ( |
Update the vertical scroll amount from the given fraction |
|
|
SetWrappingPolicy ( |
Set the wrapping policy to use |
|
|
SetWrapTextAt ( |
Set whether text wraps onto a new line when it's length exceeds this width; if this value is zero or negative, no wrapping occurs |
|
|
Tick ( |
||
|
FTextLocatio... |
TranslatedLocation ( |
Given a location and a Direction to offset, return a new location. |
|
TranslateLocationVertical ( |
Given a location and a Direction to offset, return a new location. |
|
|
Undo() |
Execute an undo action |
|
|
UpdateCursorHighlight() |
Update the active cursor highlight based on the state of the text layout |
|
|
UpdatePreferredCursorScreenOffsetInLine() |
Update the preferred offset of the cursor, based on the current state of the text layout |