Agrarsense
DragAndDropWidget.h
Go to the documentation of this file.
1// Copyright (c) 2024 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Widgets/SCompoundWidget.h"
10#include "Input/DragAndDrop.h"
11
15class SDragAndDropWidget : public SCompoundWidget
16{
17
18public:
19
21
22 SLATE_END_ARGS()
23
24 void Construct(const FArguments& InArgs);
25
26 FReply OnDragOver(const FGeometry& MyGeometry, const FDragDropEvent& DragDropEvent) override;
27
28 FReply OnDrop(const FGeometry& MyGeometry, const FDragDropEvent& DragDropEvent) override;
29
30};
SLATE_BEGIN_ARGS(SDragAndDropWidget)
FReply OnDrop(const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
void Construct(const FArguments &InArgs)
FReply OnDragOver(const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override