VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDropTarget Class Referenceabstract

Drop target interface. More...

+ Inheritance diagram for IDropTarget:

Public Member Functions

virtual DragOperation onDragEnter (DragEventData data)=0
 a drag enters the drop target
 
virtual DragOperation onDragMove (DragEventData data)=0
 a drag moves over the drop target
 
virtual void onDragLeave (DragEventData data)=0
 a drag leaves the drop target
 
virtual bool onDrop (DragEventData data)=0
 a drop happens on the drop target
 
- Public Member Functions inherited from IReference
virtual void forget ()=0
 decrease refcount and delete object if refcount == 0
 
virtual void remember ()=0
 increase refcount
 

Detailed Description

Drop target interface.

handles drag'n drop for a view

The workflow is:

  • drag enters a view, the getDropTarget() of the view is called
  • the drop targets onDragMove() is called whenever the mouse moves inside the view
  • when the mouse leaves the view, the drop targets onDragLeave() is called and its reference count is decreased.
  • when the drag is droped, the drop targets onDrop() is called and then its reference count is decreased. Note that no onDragLeave() is called.

Member Function Documentation

virtual DragOperation onDragEnter ( DragEventData  data)
pure virtual

a drag enters the drop target

Parameters
datadrag event data
Returns
drag operation

Implemented in DropTargetAdapter, and CViewContainerDropTarget.

virtual void onDragLeave ( DragEventData  data)
pure virtual

a drag leaves the drop target

Parameters
datadrag event data

Implemented in DropTargetAdapter, and CViewContainerDropTarget.

virtual DragOperation onDragMove ( DragEventData  data)
pure virtual

a drag moves over the drop target

Parameters
datadrag event data
Returns
drag operation

Implemented in DropTargetAdapter, and CViewContainerDropTarget.

virtual bool onDrop ( DragEventData  data)
pure virtual

a drop happens on the drop target

Parameters
datadrag event data

Implemented in DropTargetAdapter, and CViewContainerDropTarget.


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