Navigation
API > API/Editor > API/Editor/EditorFramework > API/Editor/EditorFramework/Viewports
Inheritance Hierarchy
- TSharedFromThis
- FDragDropOperation
- FInViewportUIDragOperation
References
| Module | EditorFramework |
| Header | /Engine/Source/Editor/EditorFramework/Public/Viewports/InViewportUIDragOperation.h |
| Include | #include "Viewports/InViewportUIDragOperation.h" |
Syntax
class FInViewportUIDragOperation : public FDragDropOperation
Remarks
A Sample implementation of IDragDropOperation
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SDockingTabStack > | CursorDecoratorStackNode | Decorator widget where we add temp doc tabs to | |
| FVector2D | DecoratorOffsetFromCursor | Where the user grabbed the UI measured in screen space from its top-left corner | |
| FOnInViewportUIDropped | DropDelegate | ||
| FVector2D | LastContentSize | What the size of the content was when it was last shown. | |
| TSharedPtr< class SWidget > | UIBeingDragged | What is actually being dragged in this operation |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FInViewportUIDragOperation
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
The constructor is protected, so that this class can only be instantiated as a shared pointer. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BroadcastDropEvent
(
const FVector2D InLocation |
||
| const FVector2D | |||
| const FString & | GetTypeId () |
||
| TSharedRef< FInViewportUIDragOperation > | New
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
Create this Drag and Drop Content | |
| void | OnDragged
(
const FDragDropEvent& DragDropEvent |
Called when the mouse was moved during a drag and drop operation |
Overridden from FDragDropOperation
| Type | Name | Description | |
|---|---|---|---|
| bool | IsOfTypeImpl
(
const FString& Type |
Checks whether this drag and drop operation can cast safely to the specified type. | |
| void | OnDrop
(
bool bDropWasHandled, |
Invoked when the drag and drop operation has ended. |