Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Text
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextTypes.h |
| Include | #include "Widgets/Text/SlateEditableTextTypes.h" |
Syntax
class FCursorInfo
Remarks
Store the information about the current cursor position
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCursorInfo () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FCursorInfo | CreateUndo () |
Create an undo for this cursor data | |
| ECursorAlignment | Get the alignment of the cursor | ||
| FTextLocation | Get the interaction position of the cursor (where to insert, delete, etc, text from/to) | ||
| FTextLocation | Get the literal position of the cursor (note: this may not be the correct place to insert text to, use GetCursorInteractionLocation for that) | ||
| TextBiDi::ETextDirection | Get the direction of the text under the cursor | ||
| double | |||
| void | RestoreFromUndo
(
const FCursorInfo& UndoData |
Restore this cursor data from an undo | |
| void | SetCursorLocationAndAlignment
(
const FTextLayout& InTextLayout, |
Set the literal position and alignment of the cursor | |
| void | SetCursorLocationAndCalculateAlignment
(
const FTextLayout& InTextLayout, |
Set the position of the cursor, and then work out the correct alignment based on the current text layout | |
| void | Update the last cursor interaction time to now |