Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FMoveCursor
Description
Creates a MoveCursor action that describes moving the text cursor by selecting an arbitrary coordinate on the screen. e.g. User user touches a touch device screen or uses the mouse to point at text.
| Name | ViaScreenPointer |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Text/ISlateEditableTextWidget.h |
| Include Path | #include "Widgets/Text/ISlateEditableTextWidget.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Text/ISlateEditableTextWidget.cpp |
static FMoveCursor ViaScreenPointer
(
FVector2D LocalPosition,
float GeometryScale,
ECursorAction Action
)
Parameters
| Name | Remarks |
|---|---|
| LocalPosition | Position in the text widget where the user wants to move the cursor by pointing |
| GeometryScale | DPI Scale of the widget geometry. |
| Action | Just move or also select text? |