JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::DragAndDropTarget::SourceDetails Class Reference

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

#include <juce_DragAndDropTarget.h>

Collaboration diagram for juce::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.

Constructor & Destructor Documentation

◆ SourceDetails()

juce::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 juce::DragAndDropTarget::SourceDetails::description

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

◆ localPosition

Point<int> juce::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> juce::DragAndDropTarget::SourceDetails::sourceComponent

The component from the drag operation was started.


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