Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework
Inheritance Hierarchy
- FDelayedDrag
- FCurveEditorDelayedDrag
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/DelayedDrag.h |
| Include | #include "Framework/DelayedDrag.h" |
Syntax
class FDelayedDrag
Remarks
Helper class to assist with delayed drag operations
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHasInitiatedDrag | True where the distance dragged is sufficient to have started a drag | |
| float | DistanceDragged | The amount we have dragged | |
| FKey | EffectiveKey | The key that must be pressed to initiate the drag | |
| FVector2D | InitialPosition | The initial position of the drag start | |
| float | TriggerDistance | The minimum distance that must be moved before the drag initiates. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDelayedDrag
(
FVector2D InInitialPosition, |
Construct this drag helper with an initial posision, and a key (probably mouse button) required for dragging |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AttemptDragStart
(
const FPointerEvent& MouseEvent |
Attempt to start a drag from the given mouse event. | |
| void | Force the state of this helper to be 'dragging' | ||
| const FVector2D & | Get the initial start position (before any drag has started) | ||
| bool | IsDragging () |
Check whether we have initiated a drag or not | |
| void | SetTriggerScaleFactor
(
float InTriggerScaleFactor |
Assign a new scale factor to apply to the drag trigger distance |