Navigation
API > API/Runtime > API/Runtime/Slate
A drag drop operation for UI Commands
| Name | FUICommandDragDropOp |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Commands/UICommandDragDropOp.h |
| Include Path | #include "Framework/Commands/UICommandDragDropOp.h" |
Syntax
class FUICommandDragDropOp : public FDragDropOperation
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDragDropOperation → FUICommandDragDropOp
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUICommandDragDropOp
(
FName InItemName, |
Framework/Commands/UICommandDragDropOp.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsDraggingSection | bool | UI entry being dragged is a section header or section separator | Framework/Commands/UICommandDragDropOp.h | |
| BlockType | EMultiBlockType | UI entry type being dragged | Framework/Commands/UICommandDragDropOp.h | |
| CustomDecorator | TSharedPtr< SWidget > | Custom decorator to display | Framework/Commands/UICommandDragDropOp.h | |
| ItemName | FName | UI entry being dragged | Framework/Commands/UICommandDragDropOp.h | |
| Offset | FVector2D | Offset from the cursor where the decorator should be displayed | Framework/Commands/UICommandDragDropOp.h | |
| OnDropNotification | FSimpleDelegate | Delegate called when the command is dropped | Framework/Commands/UICommandDragDropOp.h | |
| OriginMultiBox | FName | Multibox the UI command was dragged from if any | Framework/Commands/UICommandDragDropOp.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetOnDropNotification
(
FSimpleDelegate InOnDropNotification |
Sets a delegate that will be called when the command is dropped | Framework/Commands/UICommandDragDropOp.h |
Overridden from FDragDropOperation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< SWidget > GetDefaultDecorator() |
FDragDropOperation interface | Framework/Commands/UICommandDragDropOp.h | |
virtual bool IsOfTypeImpl
(
const FString& Type |
Framework/Commands/UICommandDragDropOp.h | ||
virtual void OnDragged
(
const FDragDropEvent& DragDropEvent |
Framework/Commands/UICommandDragDropOp.h | ||
virtual void OnDrop
(
bool bDropWasHandled, |
Framework/Commands/UICommandDragDropOp.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString & GetTypeId() |
Framework/Commands/UICommandDragDropOp.h | ||
static TSharedRef< FUICommandDragDropOp > New
(
FName InItemName, |
Framework/Commands/UICommandDragDropOp.h |