Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextTypes.h |
Include |
#include "Widgets/Text/SlateEditableTextTypes.h" |
class FCursorInfo
Store the information about the current cursor position
Name | Description | |
---|---|---|
|
FCursorInfo() |
Name | Description | ||
---|---|---|---|
|
CreateUndo() |
Create an undo for this cursor data |
|
|
ECursorAlign... |
GetCursorAlignment() |
Get the alignment of the cursor |
|
FTextLocatio... |
GetCursorInteractionLocation() |
Get the interaction position of the cursor (where to insert, delete, etc, text from/to) |
|
FTextLocatio... |
GetCursorLocation() |
Get the literal position of the cursor ( this may not be the correct place to insert text to, use GetCursorInteractionLocation for that) |
|
TextBiDi::ET... |
GetCursorTextDirection() |
Get the direction of the text under the cursor |
|
double |
GetLastCursorInteractionTime() |
|
|
RestoreFromUndo ( |
Restore this cursor data from an undo |
|
|
SetCursorLocationAndAlignment ( |
Set the literal position and alignment of the cursor |
|
|
SetCursorLocationAndCalculateAlignment ( |
Set the position of the cursor, and then work out the correct alignment based on the current text layout |
|
|
UpdateLastCursorInteractionTime() |
Update the last cursor interaction time to now |