JUCE  v5.1.1-3-g1a0b28c73
JUCE API
DragAndDropTarget::SourceDetails Class Reference

Contains details about the source of a drag-and-drop operation. More...

#include <juce_DragAndDropTarget.h>

Collaboration diagram for DragAndDropTarget::SourceDetails:

Public Member Functions

 SourceDetails (const var &description, Component *sourceComponent, Point< int > localPosition) noexcept
 Creates a SourceDetails object from its various settings. More...
 

Public Attributes

var description
 A descriptor for the drag - this is set DragAndDropContainer::startDragging(). More...
 
Point< intlocalPosition
 The local position of the mouse, relative to the target component. More...
 
WeakReference< ComponentsourceComponent
 The component from the drag operation was started. More...
 

Detailed Description

Contains details about the source of a drag-and-drop operation.

The contents of this

Constructor & Destructor Documentation

◆ SourceDetails()

DragAndDropTarget::SourceDetails::SourceDetails ( const var description,
Component sourceComponent,
Point< int localPosition 
)
noexcept

Creates a SourceDetails object from its various settings.

Member Data Documentation

◆ description

var DragAndDropTarget::SourceDetails::description

A descriptor for the drag - this is set DragAndDropContainer::startDragging().

◆ localPosition

Point<int> DragAndDropTarget::SourceDetails::localPosition

The local position of the mouse, relative to the target component.

Note that for calls such as isInterestedInDragSource(), this may be a null position.

◆ sourceComponent

WeakReference<Component> DragAndDropTarget::SourceDetails::sourceComponent

The component from the drag operation was started.


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