FUICommandDragDropOp

A drag drop operation for UICommands

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

FDragDropOperation

FUICommandDragDropOp

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Commands/UICommandDragDropOp.h

Include

#include "Framework/Commands/UICommandDragDropOp.h"

Syntax

class FUICommandDragDropOp : public FDragDropOperation

Remarks

A drag drop operation for UICommands

Variables

Name Description

Public variable

bool

 

bIsDraggingSection

UI entry being dragged is a section header or section separator

Public variable

EMultiBlockType

 

BlockType

UI entry type being dragged

Public variable

TSharedPtr< SWi...

 

CustomDecorator

Custom decorator to display

Public variable

FName

 

ItemName

UI entry being dragged

Public variable

FVector2D

 

Offset

Offset from the cursor where the decorator should be displayed

Public variable

FSimpleDelegate

 

OnDropNotification

Delegate called when the command is dropped

Public variable

FName

 

OriginMultiBox

Multibox the UI command was dragged from if any

Constructors

Name Description

Public function

FUICommandDragDropOp

(
    FName InItemName,
    EMultiBlockType InBlockType,
    bool bInIsDraggingSection,
    FName InOriginMultiBox,
    TSharedPtr< SWidget > InCustomDecor...,
    FVector2D DecoratorOffset
)

Functions

Name Description

Public function Static

const FStrin...

 

GetTypeId()

Public function Static

TSharedRef< ...

 

New

(
    FName InItemName,
    EMultiBlockType InBlockType,
    bool bInIsDraggingSection,
    FName InOriginMultiBox,
    TSharedPtr< SWidget > CustomDectora...,
    FVector2D DecoratorOffset
)

Public function

void

 

SetOnDropNotification

(
    FSimpleDelegate InOnDropNotificatio...
)

Sets a delegate that will be called when the command is dropped

Overridden from FDragDropOperation

Name Description

Public function Virtual Const

TSharedPtr< ...

 

GetDefaultDecorator()

FDragDropOperation interface

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

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.

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