// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "DragAndDrop/DecoratedDragDropOp.h" #include "WidgetReference.h" class FWidgetBlueprintEditor; class UWidgetBlueprint; /** * This drag drop operation allows widgets from the hierarchy rows to be dragged and dropped around the editor. */ class FHierarchyWidgetDragDropOp : public FDecoratedDragDropOp { public: DRAG_DROP_OPERATOR_TYPE(FHierarchyWidgetDragDropOp, FDecoratedDragDropOp) bool UMGEDITOR_API HasOriginatedFrom(const TSharedPtr& BlueprintEditor) const; const TArrayView UMGEDITOR_API GetWidgetReferences() const; /** Constructs a new drag/drop operation */ static TSharedRef New(UWidgetBlueprint* Blueprint, const TArray& InWidgets); private: TArray WidgetReferences; };