Navigation
API > API/Runtime > API/Runtime/UMG
This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation. It supports moving a UObject payload and using a UWidget decorator.
| Name | FUMGDragDropOp |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Slate/UMGDragDropOp.h |
| Include Path | #include "Slate/UMGDragDropOp.h" |
Syntax
class FUMGDragDropOp :
public FGameDragDropOperation ,
public FGCObject
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDragDropOperation → FGameDragDropOperation → FUMGDragDropOp
- FGCObject → FUMGDragDropOp
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUMGDragDropOp() |
Slate/UMGDragDropOp.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DecoratorWidget | TSharedPtr< SWidget > | The widget used during the drag/drop action to show something being dragged. | Slate/UMGDragDropOp.h | |
| DragOperation | TObjectPtr< UDragDropOperation > | Raw pointer to the drag operation, kept alive by AddReferencedObjects. | Slate/UMGDragDropOp.h | |
| GameViewport | TWeakObjectPtr< UGameViewportClient > | The viewport this drag/drop operation is associated with. | Slate/UMGDragDropOp.h | |
| MouseDownOffset | FVector2D | The offset to use when dragging the object so that it says the same distance away from the mouse. | Slate/UMGDragDropOp.h | |
| PointerIndex | int32 | Slate/UMGDragDropOp.h | ||
| SourceUserWidget | TWeakPtr< SObjectWidget > | Source User Widget | Slate/UMGDragDropOp.h | |
| StartingScreenPos | FVector2D | The starting screen location where the drag operation started. | Slate/UMGDragDropOp.h | |
| StartTime | double | Allows smooth interpolation of the dragged visual over a few frames. | Slate/UMGDragDropOp.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDragDropOperation * GetOperation() |
Slate/UMGDragDropOp.h |
Overridden from FDragDropOperation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AffectedByPointerEvent
(
const FPointerEvent& PointerEvent |
Slate/UMGDragDropOp.h | ||
virtual TSharedPtr< SWidget > GetDefaultDecorator() |
Slate/UMGDragDropOp.h | ||
virtual bool IsOfTypeImpl
(
const FString& Type |
Slate/UMGDragDropOp.h | ||
virtual FCursorReply OnCursorQuery() |
Slate/UMGDragDropOp.h | ||
virtual void OnDragged
(
const FDragDropEvent& DragDropEvent |
Slate/UMGDragDropOp.h | ||
virtual void OnDrop
(
bool bDropWasHandled, |
Slate/UMGDragDropOp.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
Begin FGCObject. | Slate/UMGDragDropOp.h | |
virtual FString GetReferencerName() |
Slate/UMGDragDropOp.h |
Protected
Overridden from FDragDropOperation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Construct() |
Slate/UMGDragDropOp.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString & GetTypeId() |
Slate/UMGDragDropOp.h | ||
static TSharedRef< FUMGDragDropOp > New
(
UDragDropOperation* Operation, |
Slate/UMGDragDropOp.h |