94 virtual void itemDragEnter (
const SourceDetails& dragSourceDetails);
104 virtual void itemDragMove (
const SourceDetails& dragSourceDetails);
117 virtual void itemDragExit (
const SourceDetails& dragSourceDetails);
137 virtual bool shouldDrawDragImageWhenOver();
The base class for all JUCE user-interface objects.
Contains details about the source of a drag-and-drop operation.
Point< int > localPosition
The local position of the mouse, relative to the target component.
WeakReference< Component > sourceComponent
The component from the drag operation was started.
var description
A descriptor for the drag - this is set DragAndDropContainer::startDragging().
Components derived from this class can have things dropped onto them by a DragAndDropContainer.
virtual bool isInterestedInDragSource(const SourceDetails &dragSourceDetails)=0
Callback to check whether this target is interested in the type of object being dragged.
virtual void itemDropped(const SourceDetails &dragSourceDetails)=0
Callback to indicate that the user has dropped something onto this component.
virtual ~DragAndDropTarget()=default
Destructor.
A pair of (x, y) coordinates.
This class acts as a pointer which will automatically become null if the object to which it points is...
A variant class, that can be used to hold a range of primitive values.