FUMGDragDropOp

This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Slate/UMGDragDropOp.h

Include

#include "Slate/UMGDragDropOp.h"

Syntax

class FUMGDragDropOp :
    public FGameDragDropOperation,
    public FGCObject

Remarks

This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation. It supports moving a UObject payload and using a UWidget decorator.

Constructors

Name Description

Public function

FUMGDragDropOp()

Functions

Name Description

Public function Const

UDragDropOpe...

 

GetOperation()

Public function Static

const FStrin...

 

GetTypeId()

Public function Static

TSharedRef< ...

 

New

(
    UDragDropOperation* Operation,
    const int32 PointerIndex,
    const FVector2D& CursorPosition,
    const FVector2D& ScreenPositionOfN...,
    float DPIScale,
    TSharedPtr< SObjectWidget > SourceU...
)

Overridden from FDragDropOperation

Name Description

Public function Virtual

bool

 

AffectedByPointerEvent

(
    const FPointerEvent& PointerEvent
)

Checks if this drag and drop operation is affected by a given PointerEvent.

Protected function Virtual

void

 

Construct()

Constructs the window and widget if applicable.

Public function Virtual Const

TSharedPtr< ...

 

GetDefaultDecorator()

Gets the widget that will serve as the decorator unless overridden.

Public function Virtual Const

bool

 

IsOfTypeImpl

(
    const FString& Type
)

Checks whether this drag and drop operation can cast safely to the specified type.

Public function Virtual

FCursorReply

 

OnCursorQuery()

Allows drag/drop operations to override the current cursor

Public function Virtual

void

 

OnDragged

(
    const FDragDropEvent& DragDropEven...
)

Called when the mouse was moved during a drag and drop operation

Public function Virtual

void

 

OnDrop

(
    bool bDropWasHandled,
    const FPointerEvent& MouseEvent
)

Invoked when the drag and drop operation has ended.

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Begin FGCObject.

Public function Virtual Const

FString

 

GetReferencerName()

Use this method to report a name for your referencer.

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