![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DragAndDrop.h>
Inheritance diagram for FDragDropOperation:Protected Member Functions | |
| virtual SLATECORE_API void | Construct () |
| SLATECORE_API void | CreateCursorDecoratorWindow () |
| SLATECORE_API void | DestroyCursorDecoratorWindow () |
| virtual TSharedPtr< FDragDropOperation > | ConvertTo (const FString &TypeId) |
Protected Member Functions inherited from TSharedFromThis< FDragDropOperation > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Protected Attributes | |
| bool | bCreateNewWindow |
| TSharedPtr< SWindow > | CursorDecoratorWindow |
| TOptional< EMouseCursor::Type > | MouseCursor |
| TOptional< EMouseCursor::Type > | MouseCursorOverride |
Additional Inherited Members | |
Static Protected Member Functions inherited from TSharedFromThis< FDragDropOperation > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
A base class for a DragAndDrop operation which supports reflection. Drag and Drop is inherently quite stateful. Implementing a custom DragDropOperation allows for dedicated handling of a drag drop operation which keeps a decorator window (optionally) Implement derived types with DRAG_DROP_OPERATOR_TYPE (see below)
| FDragDropOperation::FDragDropOperation | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
inlinevirtual |
Checks if this drag and drop operation is affected by a given PointerEvent.
| PointerEvent | The mouse event we are checking against |
Reimplemented in FUMGDragDropOp.
|
protectedvirtual |
Constructs the window and widget if applicable.
Reimplemented in FUMGDragDropOp.
|
inlineprotectedvirtual |
|
protected |
Creates a window for the cursor decorator.
|
protected |
Destroys the cursor decorator window.
Gets the desired position of the decorator in absolute space.
Reimplemented in FGameDragDropOperation.
|
inlinevirtual |
Gets the widget that will serve as the decorator unless overridden. If you do not override, you will have no decorator
Reimplemented in FUICommandDragDropOp, and FUMGDragDropOp.
Is this drag Drop operation going to interact with applications outside of Slate
|
inline |
Check if this drag and drop operation can cast safely to the specified template type
Checks whether this drag and drop operation can cast safely to the specified type.
|
virtual |
Allows drag/drop operations to override the current cursor
Reimplemented in FUMGDragDropOp.
|
virtual |
Called when the mouse was moved during a drag and drop operation
| DragDropEvent | The event that describes this drag drop operation. |
Reimplemented in FUICommandDragDropOp, and FUMGDragDropOp.
|
virtual |
Invoked when the drag and drop operation has ended.
| bDropWasHandled | true when the drop was handled by some widget; false otherwise |
| MouseEvent | The mouse event which caused the on drop to be called. |
Reimplemented in FDockingDragOperation, FUICommandDragDropOp, and FUMGDragDropOp.
| void FDragDropOperation::SetCursorOverride | ( | TOptional< EMouseCursor::Type > | CursorType | ) |
Sets the cursor to override the drag drop operations cursor with so that a control can give temporary feedback, for example - a slashed circle telling the user 'this can't be dropped here'.
Alters the visibility of the window
|
protected |
Create a new window for the decorator content. If this is false, SlateApplication will draw the decorator directly using the
|
protected |
The window that owns the decorator widget
|
protected |
Mouse cursor used by the drag drop operation
|
protected |
Mouse cursor used to temporarily replace the drag drops cursor