98 bool allowDraggingToOtherJuceWindows =
false,
99 const Point<int>* imageOffsetFromMouse =
nullptr,
102 [[deprecated (
"This overload does not allow the image's scale to be specified. Use the other overload of startDragging instead.")]]
106 bool allowDraggingToOtherJuceWindows =
false,
107 const Point<int>* imageOffsetFromMouse =
nullptr,
113 allowDraggingToOtherJuceWindows,
114 imageOffsetFromMouse,
115 inputSourceCausingDrag);
119 bool isDragAndDropActive()
const;
122 int getNumCurrentDrags()
const;
134 var getCurrentDragDescription()
const;
140 var getDragDescriptionForIndex (
int index)
const;
149 void setCurrentDragImage (
const ScaledImage& newImage);
151 [[deprecated (
"This overload does not allow the image's scale to be specified. Use the other overload of setCurrentDragImage instead.")]]
158 void setDragImageForIndex (
int index,
const ScaledImage& newImage);
160 [[deprecated (
"This overload does not allow the image's scale to be specified. Use the other overload of setDragImageForIndex instead.")]]
195 static bool performExternalDragDropOfFiles (
const StringArray&
files,
bool canMoveFiles,
197 std::function<
void()>
callback =
nullptr);
215 static bool performExternalDragDropOfText (
const String&
text,
Component* sourceComponent =
nullptr,
216 std::function<
void()>
callback =
nullptr);
257 class DragImageComponent;
Definition juce_Component.h:36
Definition juce_DragAndDropContainer.h:51
void startDragging(const var &sourceDescription, Component *sourceComponent, const ScaledImage &dragImage=ScaledImage(), bool allowDraggingToOtherJuceWindows=false, const Point< int > *imageOffsetFromMouse=nullptr, const MouseInputSource *inputSourceCausingDrag=nullptr)
Definition juce_DragAndDropContainer.cpp:403
virtual ~DragAndDropContainer()
void setCurrentDragImage(const Image &newImage)
Definition juce_DragAndDropContainer.h:152
void setDragImageForIndex(int index, const Image &newImage)
Definition juce_DragAndDropContainer.h:161
const MouseInputSource * getMouseInputSourceForDrag(Component *sourceComponent, const MouseInputSource *inputSourceCausingDrag)
Definition juce_DragAndDropContainer.cpp:565
OwnedArray< DragImageComponent > dragImageComponents
Definition juce_DragAndDropContainer.h:258
void startDragging(const var &sourceDescription, Component *sourceComponent, Image dragImage, bool allowDraggingToOtherJuceWindows=false, const Point< int > *imageOffsetFromMouse=nullptr, const MouseInputSource *inputSourceCausingDrag=nullptr)
Definition juce_DragAndDropContainer.h:103
bool isAlreadyDragging(Component *sourceComponent) const noexcept
Definition juce_DragAndDropContainer.cpp:597
Definition juce_DragAndDropTarget.h:54
Definition juce_Image.h:58
Definition juce_OwnedArray.h:51
Definition juce_Point.h:42
Definition juce_ScaledImage.h:45
Definition juce_StringArray.h:35
Definition juce_String.h:53
Definition juce_Variant.h:42
#define JUCE_API
Definition juce_StandardHeader.h:152
static char ** files
Definition misc.c:28
Definition carla_juce.cpp:31
const char * text
Definition swell-functions.h:167
RECT const char void(* callback)(const char *droppath))) SWELL_API_DEFINE(BOOL
Definition swell-functions.h:1004