|
virtual float | CanHandle (const ezDragDropInfo *pInfo) const =0 |
| Used to ask a handler whether it knows how to handle a certain drag & drop situation. More...
|
|
virtual void | RequestConfiguration (ezDragDropConfig *pConfigToFillOut) |
| Potentially called by the drag drop target to request information about how to determine the ezDragDropInfo data.
|
|
virtual void | OnDragBegin (const ezDragDropInfo *pInfo)=0 |
| Called shortly after CanHandle returned true to begin handling a drag operation.
|
|
virtual void | OnDragUpdate (const ezDragDropInfo *pInfo)=0 |
| Called to update the drag operation with the latest state.
|
|
virtual void | OnDragCancel ()=0 |
| Called when the drag operation leaves the designated area. The handler will be destroyed after this. It should clean up all temporary objects that it created before.
|
|
virtual void | OnDrop (const ezDragDropInfo *pInfo)=0 |
| Final call to finish the drag & drop operation. Handler is destroyed after this.
|
|
|
virtual const ezRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
◆ CanHandle()
virtual float ezDragDropHandler::CanHandle |
( |
const ezDragDropInfo * |
pInfo | ) |
const |
|
protectedpure virtual |
Used to ask a handler whether it knows how to handle a certain drag & drop situation.
The return value is a priority. By default CanHandle should return 0 or 1. To override an existing handler, values larger than 1 may be returned to take precedence.
Implemented in ezComponentDragDropHandler, ezGameObjectOnLayerDragDropHandler, ezLayerOnLayerDragDropHandler, ezAnimatedMeshComponentDragDropHandler, ezMaterialDragDropHandler, ezProcPlacementComponentDragDropHandler, ezSoundEventComponentDragDropHandler, ezJoltCollisionMeshComponentDragDropHandler, ezKrautTreeComponentDragDropHandler, ezParticleComponentDragDropHandler, ezCollisionMeshComponentDragDropHandler, ezRmlUiComponentDragDropHandler, ezDecalComponentDragDropHandler, ezMeshComponentDragDropHandler, ezPrefabComponentDragDropHandler, ezSkeletonComponentDragDropHandler, ezTypeScriptComponentDragDropHandler, and ezVisualScriptComponentDragDropHandler.
The documentation for this class was generated from the following files:
- /home/runner/work/ezEngine/ezEngine/Code/Editor/EditorFramework/DragDrop/DragDropHandler.h
- /home/runner/work/ezEngine/ezEngine/Code/Editor/EditorFramework/DragDrop/Implementation/DragDropHandler.cpp