![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DelayedDrag.h>
Public Member Functions | |
| FDelayedDrag (FVector2D InInitialPosition, FKey InEffectiveKey) | |
| const FVector2D & | GetInitialPosition () const |
| bool | IsDragging () const |
| void | ForceDragStart () |
| bool | AttemptDragStart (const FPointerEvent &MouseEvent) |
| void | SetTriggerScaleFactor (float InTriggerScaleFactor) |
Protected Attributes | |
| FVector2D | InitialPosition |
| bool | bHasInitiatedDrag |
| float | DistanceDragged |
| float | TriggerDistance |
| FKey | EffectiveKey |
Helper class to assist with delayed drag operations
Construct this drag helper with an initial posision, and a key (probably mouse button) required for dragging
|
inline |
Attempt to start a drag from the given mouse event.
|
inline |
Force the state of this helper to be 'dragging'
|
inline |
Get the initial start position (before any drag has started)
|
inline |
Check whether we have initiated a drag or not
Assign a new scale factor to apply to the drag trigger distance
|
protected |
True where the distance dragged is sufficient to have started a drag
|
protected |
The amount we have dragged
|
protected |
The key that must be pressed to initiate the drag
|
protected |
The initial position of the drag start
|
protected |
The minimum distance that must be moved before the drag initiates.