Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/ContentSourceDragDropOp.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

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;
};