#include <MimeDataHandlerBus.h>
Inherits AZ::EBusTraits.
|
using | BusIdType = AZ::EntityId |
|
|
virtual bool | IsInterestedInMimeData (const AZ::EntityId &sceneId, const QMimeData *mimeData)=0 |
|
virtual void | HandleMove (const AZ::EntityId &sceneId, const QPointF &dropPoint, const QMimeData *mimeData)=0 |
|
virtual void | HandleDrop (const AZ::EntityId &sceneId, const QPointF &dropPoint, const QMimeData *mimeData)=0 |
|
virtual void | HandleLeave (const AZ::EntityId &sceneId, const QMimeData *mimeData)=0 |
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
MimeDelegateHandlerRequests This interface provides a means for pluggable MIME data handlers to provide capabilities to the default implementation (DefaultMimeDataHandler).
This allows custom handlers to be easily added to a scene for whatever use-cases a user has.
◆ HandleDrop()
virtual void GraphCanvas::SceneMimeDelegateHandlerRequests::HandleDrop |
( |
const AZ::EntityId & |
sceneId, |
|
|
const QPointF & |
dropPoint, |
|
|
const QMimeData * |
mimeData |
|
) |
| |
|
pure virtual |
When a drop takes place, the first capable handler will receive the data to process.
Parameters
- The scene the view is displaying.
- The QPoint where the drop occured.
- The Mime data of the drop
◆ HandleLeave()
virtual void GraphCanvas::SceneMimeDelegateHandlerRequests::HandleLeave |
( |
const AZ::EntityId & |
sceneId, |
|
|
const QMimeData * |
mimeData |
|
) |
| |
|
pure virtual |
When a leave occurs, all interested handlers will receive the data to process
Parameters
- The scene the view is displaying.
- The Mime data of the drop
◆ HandleMove()
virtual void GraphCanvas::SceneMimeDelegateHandlerRequests::HandleMove |
( |
const AZ::EntityId & |
sceneId, |
|
|
const QPointF & |
dropPoint, |
|
|
const QMimeData * |
mimeData |
|
) |
| |
|
pure virtual |
When a dragged element is moved, all interested delegates will be notified.
Parameters
- The scene that is receiving the event.
- The QMimeData associated with the drag.
◆ IsInterestedInMimeData()
virtual bool GraphCanvas::SceneMimeDelegateHandlerRequests::IsInterestedInMimeData |
( |
const AZ::EntityId & |
sceneId, |
|
|
const QMimeData * |
mimeData |
|
) |
| |
|
pure virtual |
Is the delegate interested in the data? If no delegates are, then the drag will be refused.
Parameters
- The scene that is receiving the event.
- The QMimeData associated with the drag.
The documentation for this class was generated from the following file:
- Gems/GraphCanvas/Code/StaticLib/GraphCanvas/Components/MimeDataHandlerBus.h