Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Input/DragAndDrop.h |
Include |
#include "Input/DragAndDrop.h" |
class FDragDropOperation : public TSharedFromThis< FDragDropOperation >
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)
Name | Description | ||
---|---|---|---|
|
bCreateNewWindow |
Create a new window for the decorator content. |
|
|
TSharedPtr< SWi... |
CursorDecoratorWindow |
The window that owns the decorator widget |
|
MouseCursor |
Mouse cursor used by the drag drop operation |
|
|
MouseCursorOverride |
Mouse cursor used to temporarily replace the drag drops cursor |
Name | Description | |
---|---|---|
|
FDragDropOperation() |
Default constructor. |
Name | Description | |
---|---|---|
|
~FDragDropOperation() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
AffectedByPointerEvent ( |
Checks if this drag and drop operation is affected by a given PointerEvent. |
|
|
Construct() |
Constructs the window and widget if applicable. |
|
|
TSharedPtr< ... |
ConvertTo ( |
|
|
CreateCursorDecoratorWindow() |
Creates a window for the cursor decorator. |
|
|
DestroyCursorDecoratorWindow() |
Destroys the cursor decorator window. |
|
|
GetDecoratorPosition() |
Gets the desired position of the decorator in absolute space. |
|
|
TSharedPtr< ... |
GetDefaultDecorator() |
Gets the widget that will serve as the decorator unless overridden. |
|
IsExternalOperation() |
Is this drag Drop operation going to interact with applications outside of Slate |
|
|
IsOfType() |
Check if this drag and drop operation can cast safely to the specified template type |
|
|
IsOfTypeImpl ( |
Checks whether this drag and drop operation can cast safely to the specified type. |
|
|
IsWindowlessOperation() |
||
|
OnCursorQuery() |
Allows drag/drop operations to override the current cursor |
|
|
OnDragged ( |
Called when the mouse was moved during a drag and drop operation |
|
|
OnDrop ( |
Invoked when the drag and drop operation has ended. |
|
|
SetCursorOverride ( |
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'. |
|
|
SetDecoratorVisibility ( |
Alters the visibility of the window |