![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateEditableTextTypes.h>
Public Member Functions | |
| FCursorInfo () | |
| FTextLocation | GetCursorLocation () const |
| ECursorAlignment | GetCursorAlignment () const |
| TextBiDi::ETextDirection | GetCursorTextDirection () const |
| FTextLocation | GetCursorInteractionLocation () const |
| double | GetLastCursorInteractionTime () const |
| SLATE_API void | UpdateLastCursorInteractionTime () |
| SLATE_API void | SetCursorLocationAndCalculateAlignment (const FTextLayout &InTextLayout, const FTextLocation &InCursorPosition) |
| SLATE_API void | SetCursorLocationAndAlignment (const FTextLayout &InTextLayout, const FTextLocation &InCursorPosition, const ECursorAlignment InCursorAlignment) |
| SLATE_API FCursorInfo | CreateUndo () const |
| SLATE_API void | RestoreFromUndo (const FCursorInfo &UndoData) |
Store the information about the current cursor position
|
inline |
| FCursorInfo SlateEditableTextTypes::FCursorInfo::CreateUndo | ( | ) | const |
Create an undo for this cursor data
|
inline |
Get the alignment of the cursor
|
inline |
Get the interaction position of the cursor (where to insert, delete, etc, text from/to)
|
inline |
Get the literal position of the cursor (note: this may not be the correct place to insert text to, use GetCursorInteractionLocation for that)
|
inline |
Get the direction of the text under the cursor
|
inline |
| void SlateEditableTextTypes::FCursorInfo::RestoreFromUndo | ( | const FCursorInfo & | UndoData | ) |
Restore this cursor data from an undo
| void SlateEditableTextTypes::FCursorInfo::SetCursorLocationAndAlignment | ( | const FTextLayout & | InTextLayout, |
| const FTextLocation & | InCursorPosition, | ||
| const ECursorAlignment | InCursorAlignment | ||
| ) |
Set the literal position and alignment of the cursor
| void SlateEditableTextTypes::FCursorInfo::SetCursorLocationAndCalculateAlignment | ( | const FTextLayout & | InTextLayout, |
| const FTextLocation & | InCursorPosition | ||
| ) |
Set the position of the cursor, and then work out the correct alignment based on the current text layout
| void SlateEditableTextTypes::FCursorInfo::UpdateLastCursorInteractionTime | ( | ) |
Update the last cursor interaction time to now