|
static bool | IsHandlerActive () |
| Returns whether the last call to BeginDragDropOperation() was successful and a handler is now in effect.
|
|
static bool | BeginDragDropOperation (const plDragDropInfo *pInfo, plDragDropConfig *pConfigToFillOut=nullptr) |
| Call this when a drag enter event occurs. Return value indicates whether a plDragDropHandler was found to handle the operation. If not, subsequent drag & drop updates are ignored.
|
|
static void | UpdateDragDropOperation (const plDragDropInfo *pInfo) |
| Call this when a drag event occurs. Ignored if BeginDragDropOperation() was not successful.
|
|
static void | FinishDragDrop (const plDragDropInfo *pInfo) |
| Call this when a drop event occurs. Ignored if BeginDragDropOperation() was not successful.
|
|
static void | CancelDragDrop () |
| Call this when a drag leave event occurs. Ignored if BeginDragDropOperation() was not successful.
|
|
static bool | CanDropOnly (const plDragDropInfo *pInfo) |
| For targets that do not support full dragging, but only dropping on a single target, this allows to query whether there is a handler for the given target. See also DropOnly().
|
|
static bool | DropOnly (const plDragDropInfo *pInfo) |
| Executes a complete drop action on a target that does not support continuous dragging. See also CanDropOnly().
|
|
static const plRTTI * | GetStaticRTTI () |
|
|
virtual float | CanHandle (const plDragDropInfo *pInfo) const =0 |
| Used to ask a handler whether it knows how to handle a certain drag & drop situation.
|
|
virtual void | RequestConfiguration (plDragDropConfig *pConfigToFillOut) |
| Potentially called by the drag drop target to request information about how to determine the plDragDropInfo data.
|
|
virtual void | OnDragBegin (const plDragDropInfo *pInfo)=0 |
| Called shortly after CanHandle returned true to begin handling a drag operation.
|
|
virtual void | OnDragUpdate (const plDragDropInfo *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 plDragDropInfo *pInfo)=0 |
| Final call to finish the drag & drop operation. Handler is destroyed after this.
|
|
|
virtual const plRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const plRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
◆ CanHandle()
virtual float plDragDropHandler::CanHandle |
( |
const plDragDropInfo * | 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 plAnimatedMeshComponentDragDropHandler, plComponentDragDropHandler, plDecalComponentDragDropHandler, plGameObjectOnLayerDragDropHandler, plJoltCollisionMeshComponentDragDropHandler, plKrautTreeComponentDragDropHandler, plLayerOnLayerDragDropHandler, plMaterialDragDropHandler, plMeshComponentDragDropHandler, plParticleComponentDragDropHandler, plPrefabComponentDragDropHandler, plProcPlacementComponentDragDropHandler, plRmlUiComponentDragDropHandler, plSkeletonComponentDragDropHandler, plSoundEventComponentDragDropHandler, plTypeScriptComponentDragDropHandler, and plVisualScriptComponentDragDropHandler.
◆ OnDragBegin()
virtual void plDragDropHandler::OnDragBegin |
( |
const plDragDropInfo * | pInfo | ) |
|
|
protectedpure virtual |
Called shortly after CanHandle returned true to begin handling a drag operation.
Implemented in plAnimatedMeshComponentDragDropHandler, plComponentDragDropHandler, plDecalComponentDragDropHandler, plJoltCollisionMeshComponentDragDropHandler, plKrautTreeComponentDragDropHandler, plLayerDragDropHandler, plMaterialDragDropHandler, plMeshComponentDragDropHandler, plParticleComponentDragDropHandler, plPrefabComponentDragDropHandler, plProcPlacementComponentDragDropHandler, plRmlUiComponentDragDropHandler, plSkeletonComponentDragDropHandler, plSoundEventComponentDragDropHandler, plTypeScriptComponentDragDropHandler, and plVisualScriptComponentDragDropHandler.
◆ OnDragCancel()
virtual void plDragDropHandler::OnDragCancel |
( |
| ) |
|
|
protectedpure virtual |
◆ OnDragUpdate()
virtual void plDragDropHandler::OnDragUpdate |
( |
const plDragDropInfo * | pInfo | ) |
|
|
protectedpure virtual |
◆ OnDrop()
virtual void plDragDropHandler::OnDrop |
( |
const plDragDropInfo * | pInfo | ) |
|
|
protectedpure virtual |
◆ RequestConfiguration()
virtual void plDragDropHandler::RequestConfiguration |
( |
plDragDropConfig * | pConfigToFillOut | ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following files:
- Code/Editor/EditorFramework/DragDrop/DragDropHandler.h
- Code/Editor/EditorFramework/DragDrop/Implementation/DragDropHandler.cpp