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

Detailed Description

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

Public Member Functions

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

Public Attributes

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

Constructors and Destructors

◆ SourceDetails()

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

Creates a SourceDetails object from its various settings.

References description, localPosition, and sourceComponent.

Member Data Documentation

◆ description

var juce::DragAndDropTarget::SourceDetails::description

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

Referenced by SourceDetails().

◆ sourceComponent

WeakReference<Component> juce::DragAndDropTarget::SourceDetails::sourceComponent

The component from the drag operation was started.

Referenced by SourceDetails().

◆ 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.

Referenced by SourceDetails().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram