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

Function dropCallback

src/window/Window.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245static void dropCallback(GLFWwindow* win, int count, const char** paths) {
246 contextSet((Context*) glfwGetWindowUserPointer(win));
247 std::vector<std::string> pathsVec;
248 for (int i = 0; i < count; i++) {
249 pathsVec.push_back(paths[i]);
250 }
251 APP->event->handleDrop(APP->window->internal->lastMousePos, pathsVec);
252}
253
254
255static void errorCallback(int error, const char* description) {

Callers

nothing calls this directly

Calls 2

contextSetFunction · 0.85
handleDropMethod · 0.80

Tested by

no test coverage detected