MCPcopy Create free account
hub / github.com/VCVRack/Rack / handleDrop

Method handleDrop

src/widget/event.cpp:348–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348bool EventState::handleDrop(math::Vec pos, const std::vector<std::string>& paths) {
349 // Dispatch PathDropEvent
350 EventContext cPathDrop;
351 Widget::PathDropEvent ePathDrop(paths);
352 ePathDrop.context = &cPathDrop;
353 ePathDrop.pos = pos;
354 rootWidget->onPathDrop(ePathDrop);
355
356 return !!cPathDrop.target;
357}
358
359bool EventState::handleText(math::Vec pos, uint32_t codepoint) {
360 if (selectedWidget) {

Callers 1

dropCallbackFunction · 0.80

Calls 1

onPathDropMethod · 0.45

Tested by

no test coverage detected