Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Commands
Inheritance Hierarchy
- TSharedFromThis
- FDragDropOperation
- FUICommandDragDropOp
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Commands/UICommandDragDropOp.h |
| Include | #include "Framework/Commands/UICommandDragDropOp.h" |
Syntax
class FUICommandDragDropOp : public FDragDropOperation
Remarks
A drag drop operation for UI Commands
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsDraggingSection | UI entry being dragged is a section header or section separator | |
| EMultiBlockType | BlockType | UI entry type being dragged | |
| TSharedPtr< SWidget > | CustomDecorator | Custom decorator to display | |
| FName | ItemName | UI entry being dragged | |
| FVector2D | Offset | Offset from the cursor where the decorator should be displayed | |
| FSimpleDelegate | OnDropNotification | Delegate called when the command is dropped | |
| FName | OriginMultiBox | Multibox the UI command was dragged from if any |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUICommandDragDropOp
(
FName InItemName, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FString & | GetTypeId () |
||
| TSharedRef< FUICommandDragDropOp > | New
(
FName InItemName, |
||
| void | SetOnDropNotification
(
FSimpleDelegate InOnDropNotification |
Sets a delegate that will be called when the command is dropped |
Overridden from FDragDropOperation
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWidget > | FDragDropOperation interface | ||
| bool | IsOfTypeImpl
(
const FString& Type |
Checks whether this drag and drop operation can cast safely to the specified type. | |
| 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. |