Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Input
Inheritance Hierarchy
- TSharedFromThis
- FDragDropOperation
- FBoneDragDropOp
- FBrushBuilderDragDropOp
- FClassDragDropOp
- FColorDragDrop
- FCommandDragDropOperation
- FDecoratedDragDropOp
- FActorDragDropOp
- FActorDragDropGraphEdOp
- FAssetDragDropOp
- FContentBrowserDataDragDropOp
- FCollectionDragDropOp
- FCompositeDragDropOp
- FSceneOutlinerDragDropOp
- FDataLayerActorMoveOp
- FDataLayerDragDropOp
- FFolderDragDropOp
- FGraphNodeDragDropOp
- FIKRigSkeletonDragDropOp
- FIKRigSolverStackDragDropOp
- FLayerDragDropOp
- FLayersDragDropOp
- FLevelDragDropOp
- FNiagaraParameterDragOperation
- FNiagaraScriptDragOperation
- FNiagaraStackEntryDragDropOp
- FWidgetPropertyDragDropOp
- FWidgetTemplateDragDropOp
- FDragAndDropVerticalBoxOp
- FDraggableBoxUIDragOperation
- FExportTextDragDropOp
- FExternalDragOperation
- FGameDragDropOperation
- FUMGDragDropOp
- FGraphEditorDragDropAction
- FGraphSchemaActionDragDropAction
- FMyBlueprintItemDragDropAction
- FKismetVariableDragDropAction
- FNiagaraParameterGraphDragOperation
- FRigVMFunctionDragDropAction
- FOutlinerViewModelDragDropOp
- FSequencerObjectBindingDragDropOp
- FInViewportUIDragOperation
- FNiagaraHierarchyDragDropOp
- FNiagaraHierarchyInputParameterHierarchyDragDropOp
- FNiagaraSectionDragDropOp
- FNiagaraUserParameterHierarchyDragDropOp
- FSocketDragDropOp
- FUICommandDragDropOp
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Input/DragAndDrop.h |
| Include | #include "Input/DragAndDrop.h" |
Syntax
class FDragDropOperation : public TSharedFromThis< FDragDropOperation >
Remarks
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)
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCreateNewWindow | Create a new window for the decorator content. | |
| TSharedPtr< SWindow > | CursorDecoratorWindow | The window that owns the decorator widget | |
| TOptional< EMouseCursor::Type > | MouseCursor | Mouse cursor used by the drag drop operation | |
| TOptional< EMouseCursor::Type > | MouseCursorOverride | Mouse cursor used to temporarily replace the drag drops cursor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AffectedByPointerEvent
(
const FPointerEvent& PointerEvent |
Checks if this drag and drop operation is affected by a given PointerEvent. | |
| void | Construct () |
Constructs the window and widget if applicable. | |
| TSharedPtr< FDragDropOperation > | |||
| void | Creates a window for the cursor decorator. | ||
| void | Destroys the cursor decorator window. | ||
| FVector2D | Gets the desired position of the decorator in absolute space. | ||
| TSharedPtr< SWidget > | Gets the widget that will serve as the decorator unless overridden. | ||
| bool | Is this drag Drop operation going to interact with applications outside of Slate | ||
| bool | IsOfType () |
Check if this drag and drop operation can cast safely to the specified template type | |
| bool | IsOfTypeImpl
(
const FString& Type |
Checks whether this drag and drop operation can cast safely to the specified type. | |
| bool | |||
| FCursorReply | Allows drag/drop operations to override the current cursor | ||
| void | OnDragged
(
const FDragDropEvent& DragDropEvent |
Called when the mouse was moved during a drag and drop operation | |
| void | OnDrop
(
bool bDropWasHandled, |
Invoked when the drag and drop operation has ended. | |
| void | 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'. | |
| void | SetDecoratorVisibility
(
bool bVisible |
Alters the visibility of the window |