Plasma Engine  2.0
Loading...
Searching...
No Matches
LayerDragDropHandler.h
1#pragma once
2
3#include <EditorFramework/DragDrop/ComponentDragDropHandler.h>
4
7{
8 PL_ADD_DYNAMIC_REFLECTION(plLayerDragDropHandler, plDragDropHandler);
9
10public:
11 virtual void OnDragBegin(const plDragDropInfo* pInfo) override {}
12 virtual void OnDragUpdate(const plDragDropInfo* pInfo) override {}
13 virtual void OnDragCancel() override {}
14
15protected:
16 const plRTTI* GetCommonBaseType(const plDragDropInfo* pInfo) const;
17};
18
20{
21 PL_ADD_DYNAMIC_REFLECTION(plLayerOnLayerDragDropHandler, plLayerDragDropHandler);
22
23public:
24 virtual float CanHandle(const plDragDropInfo* pInfo) const override;
25 virtual void OnDrop(const plDragDropInfo* pInfo) override;
26};
27
29{
31
32public:
33 virtual float CanHandle(const plDragDropInfo* pInfo) const override;
34 virtual void OnDrop(const plDragDropInfo* pInfo) override;
35};
Definition DragDropHandler.h:10
This type is used to provide plDragDropHandler instances with all the important information for a dra...
Definition DragDropInfo.h:16
Definition LayerDragDropHandler.h:29
virtual void OnDrop(const plDragDropInfo *pInfo) override
Final call to finish the drag & drop operation. Handler is destroyed after this.
Definition LayerDragDropHandler.cpp:98
virtual float CanHandle(const plDragDropInfo *pInfo) const override
Used to ask a handler whether it knows how to handle a certain drag & drop situation.
Definition LayerDragDropHandler.cpp:79
Base class for drag and drop handler that drop on a plSceneLayer.
Definition LayerDragDropHandler.h:7
virtual void OnDragUpdate(const plDragDropInfo *pInfo) override
Called to update the drag operation with the latest state.
Definition LayerDragDropHandler.h:12
virtual void OnDragCancel() override
Called when the drag operation leaves the designated area. The handler will be destroyed after this....
Definition LayerDragDropHandler.h:13
virtual void OnDragBegin(const plDragDropInfo *pInfo) override
Called shortly after CanHandle returned true to begin handling a drag operation.
Definition LayerDragDropHandler.h:11
Definition LayerDragDropHandler.h:20
virtual float CanHandle(const plDragDropInfo *pInfo) const override
Used to ask a handler whether it knows how to handle a certain drag & drop situation.
Definition LayerDragDropHandler.cpp:40
virtual void OnDrop(const plDragDropInfo *pInfo) override
Final call to finish the drag & drop operation. Handler is destroyed after this.
Definition LayerDragDropHandler.cpp:58
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30