Navigation
API > API/Editor > API/Editor/EditorFramework
A Sample implementation of IDragDropOperation
| Name | FInViewportUIDragOperation |
| Type | class |
| Header File | /Engine/Source/Editor/EditorFramework/Public/Viewports/InViewportUIDragOperation.h |
| Include Path | #include "Viewports/InViewportUIDragOperation.h" |
Syntax
class FInViewportUIDragOperation : public FDragDropOperation
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDragDropOperation → FInViewportUIDragOperation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInViewportUIDragOperation
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
The constructor is protected, so that this class can only be instantiated as a shared pointer. | Viewports/InViewportUIDragOperation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FInViewportUIDragOperation() |
Viewports/InViewportUIDragOperation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BroadcastDropEvent
(
const FVector2D InLocation |
Viewports/InViewportUIDragOperation.h | ||
const FVector2f GetDecoratorOffsetFromCursor() |
Viewports/InViewportUIDragOperation.h | ||
virtual bool IsOfTypeImpl
(
const FString& Type |
Viewports/InViewportUIDragOperation.h | ||
virtual void OnDragged
(
const FDragDropEvent& DragDropEvent |
Called when the mouse was moved during a drag and drop operation | Viewports/InViewportUIDragOperation.h | |
virtual void OnDrop
(
bool bDropWasHandled, |
Invoked when the drag and drop operation has ended. | Viewports/InViewportUIDragOperation.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString & GetTypeId() |
Viewports/InViewportUIDragOperation.h | ||
static TSharedRef< FInViewportUIDragOperation > New
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
Create this Drag and Drop Content | Viewports/InViewportUIDragOperation.h |