engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FMoveCursor类 参考

Argument to the ITextEditorWidget::Move(); it decouples performing cursor movement and text highlighting actions from event handling. 更多...

#include <ISlateEditableTextWidget.h>

Public 成员函数

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.
 

静态 Public 成员函数

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.

参数
GranularityMove one character at a time, or on word boundaries (e.g. Ctrl is held down, or double-click mouse+drag)
DirectionAxis-aligned unit vector along which to move. e.g. Move right: (0,1) or Move Up: (-1, 0)
ActionJust move or also select text?

◆ GetAction()

ECursorAction FMoveCursor::GetAction ( ) const
参见
ECursorAction

◆ 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
参见
ECursorMoveMethod

◆ 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.

参数
LocalPositionPosition in the text widget where the user wants to move the cursor by pointing
GeometryScaleDPI Scale of the widget geometry.
ActionJust move or also select text?

该类的文档由以下文件生成: