Argument to the ITextEditorWidget::Move(); it decouples performing cursor movement and text highlighting actions from event handling.
更多...
#include <ISlateEditableTextWidget.h>
|
| ECursorAction | GetAction () const |
| |
|
float | GetGeometryScale () const |
| | Geometry Scale at the time of the event that caused this action
|
| |
|
ECursorMoveGranularity | GetGranularity () const |
| | Move one character at a time, or one word?
|
| |
|
FVector2D | GetLocalPosition () const |
| | Which position in the widget where the user touched when using ScreenPosition mode.
|
| |
| FIntPoint | GetMoveDirection () const |
| | When using directional movement (i.e. 更多...
|
| |
| ECursorMoveMethod | GetMoveMethod () const |
| |
|
bool | IsHorizontalMovement () const |
| | Is the cursor moving left/right; Only valid for word and character movement methods.
|
| |
|
bool | IsVerticalMovement () const |
| | Is the cursor moving up/down; Only valid for word and character movement methods.
|
| |
|
| static FMoveCursor | Cardinal (ECursorMoveGranularity Granularity, FIntPoint Direction, ECursorAction Action) |
| | Creates a MoveCursor action that describes moving by a single character in any of the cardinal directions. 更多...
|
| |
| static FMoveCursor | ViaScreenPointer (FVector2D LocalPosition, float GeometryScale, ECursorAction Action) |
| | Creates a MoveCursor action that describes moving the text cursor by selecting an arbitrary coordinate on the screen. 更多...
|
| |
Argument to the ITextEditorWidget::Move(); it decouples performing cursor movement and text highlighting actions from event handling.
FMoveCursor describes how the cursor can be moved via keyboard, mouse, and other mechanisms in the future.
◆ Cardinal()
| static FMoveCursor FMoveCursor::Cardinal |
( |
ECursorMoveGranularity |
Granularity, |
|
|
FIntPoint |
Direction, |
|
|
ECursorAction |
Action |
|
) |
| |
|
static |
Creates a MoveCursor action that describes moving by a single character in any of the cardinal directions.
- 参数
-
| Granularity | Move one character at a time, or on word boundaries (e.g. Ctrl is held down, or double-click mouse+drag) |
| Direction | Axis-aligned unit vector along which to move. e.g. Move right: (0,1) or Move Up: (-1, 0) |
| Action | Just move or also select text? |
◆ GetAction()
| ECursorAction FMoveCursor::GetAction |
( |
| ) |
const |
◆ GetMoveDirection()
| FIntPoint FMoveCursor::GetMoveDirection |
( |
| ) |
const |
When using directional movement (i.e.
Character or Word granularity; not screen position, which way to move.)
◆ GetMoveMethod()
| ECursorMoveMethod FMoveCursor::GetMoveMethod |
( |
| ) |
const |
◆ ViaScreenPointer()
| static FMoveCursor FMoveCursor::ViaScreenPointer |
( |
FVector2D |
LocalPosition, |
|
|
float |
GeometryScale, |
|
|
ECursorAction |
Action |
|
) |
| |
|
static |
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.
- 参数
-
| 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? |
该类的文档由以下文件生成:
- ISlateEditableTextWidget.h