You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #lockdown Nick.Penwarden #ROBOMERGE-OWNER: ryan.gerleve #ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/... #ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) [CL 4662413 by ben marsh in Dev-Networking branch]
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Input/DragAndDrop.h"
|
|
#include "DragAndDrop/DecoratedDragDropOp.h"
|
|
|
|
class FContentSourceViewModel;
|
|
|
|
/** A drag drop operation for dragging and dropping FContentSourceViewModels. */
|
|
class FContentSourceDragDropOp : public FDecoratedDragDropOp
|
|
{
|
|
public:
|
|
DRAG_DROP_OPERATOR_TYPE(FContentSourceDragDropOp, FDecoratedDragDropOp)
|
|
|
|
/** Creates and constructs a shared references to a FContentSourceDragDrop.
|
|
@param InContentSource - The view model for the content source being dragged and dropped */
|
|
static TSharedRef<FContentSourceDragDropOp> CreateShared(TSharedPtr<FContentSourceViewModel> InContentSource);
|
|
|
|
virtual TSharedPtr<SWidget> GetDefaultDecorator() const override;
|
|
|
|
/** Gets the view model for the content source being dragged and dropped. */
|
|
TSharedPtr<FContentSourceViewModel> GetContentSource();
|
|
|
|
private:
|
|
FContentSourceDragDropOp(TSharedPtr<FContentSourceViewModel> InContentSource);
|
|
|
|
private:
|
|
/** The view model for the content source being dragged and dropped. */
|
|
TSharedPtr<FContentSourceViewModel> ContentSource;
|
|
};
|