FDelayedDrag

Helper class to assist with delayed drag operations

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected variable

bool

 

bHasInitiatedDrag

True where the distance dragged is sufficient to have started a drag

Protected variable

float

 

DistanceDragged

The amount we have dragged

Protected variable

FKey

 

EffectiveKey

The key that must be pressed to initiate the drag

Protected variable

FVector2D

 

InitialPosition

The initial position of the drag start

Protected variable

float

 

TriggerDistance

The minimum distance that must be moved before the drag initiates.

Constructors

Name Description

Public function

FDelayedDrag

(
    FVector2D InInitialPosition,
    FKey InEffectiveKey
)

Construct this drag helper with an initial posision, and a key (probably mouse button) required for dragging

Functions

Name Description

Public function

bool

 

AttemptDragStart

(
    const FPointerEvent& MouseEvent
)

Attempt to start a drag from the given mouse event.

Public function

void

 

ForceDragStart()

Force the state of this helper to be 'dragging'

Public function Const

const FVecto...

 

GetInitialPosition()

Get the initial start position (before any drag has started)

Public function Const

bool

 

IsDragging()

Check whether we have initiated a drag or not

Public function

void

 

SetTriggerScaleFactor

(
    float InTriggerScaleFactor
)

Assign a new scale factor to apply to the drag trigger distance

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss