LMMS
Loading...
Searching...
No Matches
juce::DragAndDropTarget::SourceDetails Class Reference

#include <juce_DragAndDropTarget.h>

Public Member Functions

 SourceDetails (const var &description, Component *sourceComponent, Point< int > localPosition) noexcept

Public Attributes

var description
WeakReference< ComponentsourceComponent
Point< intlocalPosition

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 files: