JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::DragAndDropTarget::SourceDetails Class Reference

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

#include "juce_DragAndDropTarget.h"

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< intlocalPosition
 The local position of the mouse, relative to the target component.
 

Detailed Description

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

Definition at line 53 of file juce_DragAndDropTarget.h.

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.

Definition at line 612 of file juce_DragAndDropContainer.cpp.

Member Data Documentation

◆ description

var juce::DragAndDropTarget::SourceDetails::description

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

Definition at line 62 of file juce_DragAndDropTarget.h.

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

Definition at line 70 of file juce_DragAndDropTarget.h.

◆ sourceComponent

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

The component from the drag operation was started.

Definition at line 65 of file juce_DragAndDropTarget.h.


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