Navigation
API > API/Runtime > API/Runtime/Slate
Helper class to assist with delayed drag operations
| Name | FDelayedDrag |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/DelayedDrag.h |
| Include Path | #include "Framework/DelayedDrag.h" |
Syntax
class FDelayedDrag
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDelayedDrag
(
FVector2D InInitialPosition, |
Construct this drag helper with an initial posision, and a key (probably mouse button) required for dragging | Framework/DelayedDrag.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AttemptDragStart
(
const FPointerEvent& MouseEvent |
Attempt to start a drag from the given mouse event. | Framework/DelayedDrag.h | |
void ForceDragStart() |
Force the state of this helper to be 'dragging' | Framework/DelayedDrag.h | |
const FVector2D & GetInitialPosition() |
Get the initial start position (before any drag has started) | Framework/DelayedDrag.h | |
bool IsDragging() |
Check whether we have initiated a drag or not | Framework/DelayedDrag.h | |
void SetTriggerScaleFactor
(
float InTriggerScaleFactor |
Assign a new scale factor to apply to the drag trigger distance | Framework/DelayedDrag.h |