ezEngine  Release 25.03
ezDragDropInfo Class Reference

This type is used to provide ezDragDropHandler instances with all the important information for a drag & drop target. More...

#include <DragDropInfo.h>

Inheritance diagram for ezDragDropInfo:

Public Attributes

const QMimeData * m_pMimeData
 
ezString m_sTargetContext
 A string identifying into what context the object is dropped, e.g. "viewport" or "scenetree" etc.
 
ezUuid m_TargetDocument
 The ezDocument GUID.
 
ezUuid m_TargetObject
 
ezUuid m_ActiveParentObject
 GUID of the ezDocumentObject that may be used as the parent, if no other target is more important.
 
ezUuid m_TargetComponent
 GUID of the ezDocumentObject that is the more specific component (of m_TargetObject) that was dragged on. May be invalid.
 
ezVec3 m_vDropPosition
 World space position where the object is dropped. May be NaN.
 
ezVec3 m_vDropNormal
 World space normal at the point where the object is dropped. May be NaN.
 
ezInt32 m_iTargetObjectSubID
 Some kind of index / ID for the object that is at the drop location. For meshes this is the material index.
 
ezInt32 m_iTargetObjectInsertChildIndex
 If dropped on a scene tree, this may say as which child the object is supposed to be inserted. -1 if invalid (ie. append)
 
const ezQtDocumentTreeModelAdapterm_pAdapter = nullptr
 If dropped on a scene tree, this is the adapter for the target object.
 
bool m_bShiftKeyDown
 
bool m_bCtrlKeyDown
 

Additional Inherited Members

- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () 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.
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

This type is used to provide ezDragDropHandler instances with all the important information for a drag & drop target.

It is a reflected class such that one can derive and extend it, if necessary. DragDrop handlers can then inspect whether it is a known extended type and cast to the type to get access to additional information.

Member Data Documentation

◆ m_TargetObject

ezUuid ezDragDropInfo::m_TargetObject

GUID of the ezDocumentObject that is at the dropped position. May be invalid. Can be used to attach as a child, to modify the object itself or can be ignored.


The documentation for this class was generated from the following files: