Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.DragAndDrop Interface Reference

Interface for a drag and drop operation. More...

Inheritance diagram for Dragengine.Gui.DragAndDrop:
Dragengine.Gui.DefaultDragAndDrop

Public Member Functions

void dropDone (bool success)
 Drop has been processed. More...
 
DNDTypeList getDataTypes ()
 List of supported data types by the drag source. More...
 
Object getDragDataAs (String type)
 Drag data in a specific format or null if not supported. More...
 
Widget getDragSource ()
 Drag source. More...
 
void setCanDrop (bool canDrop)
 Set if dropping is possible at the current location. More...
 
bool supportsDataType (String type)
 Drag source supports a type. More...
 

Detailed Description

Interface for a drag and drop operation.

Member Function Documentation

◆ dropDone()

void Dragengine.Gui.DragAndDrop.dropDone ( bool  success)

Drop has been processed.

The drag and drop operation is finished after this call.

Implemented in Dragengine.Gui.DefaultDragAndDrop.

◆ getDataTypes()

DNDTypeList Dragengine.Gui.DragAndDrop.getDataTypes ( )

List of supported data types by the drag source.

Implemented in Dragengine.Gui.DefaultDragAndDrop.

◆ getDragDataAs()

Object Dragengine.Gui.DragAndDrop.getDragDataAs ( String  type)

Drag data in a specific format or null if not supported.

Implemented in Dragengine.Gui.DefaultDragAndDrop.

◆ getDragSource()

Widget Dragengine.Gui.DragAndDrop.getDragSource ( )

Drag source.

Implemented in Dragengine.Gui.DefaultDragAndDrop.

◆ setCanDrop()

void Dragengine.Gui.DragAndDrop.setCanDrop ( bool  canDrop)

Set if dropping is possible at the current location.

Implemented in Dragengine.Gui.DefaultDragAndDrop.

◆ supportsDataType()

bool Dragengine.Gui.DragAndDrop.supportsDataType ( String  type)

Drag source supports a type.

Implemented in Dragengine.Gui.DefaultDragAndDrop.


The documentation for this interface was generated from the following file: