MCPcopy Create free account
hub / github.com/VitalAudio/visage / startDragDropSource

Method startDragDropSource

examples/Showcase/examples_frame.cpp:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 bool isDragDropSource() override { return true; }
114
115 std::string startDragDropSource() override {
116 redraw();
117 dragging_ = true;
118 source_file_ = visage::createTemporaryFile("txt");
119 visage::replaceFileWithText(source_file_, "Example drag and drop source file.");
120 return source_file_.string();
121 }
122
123 void cleanupDragDropSource() override {
124 redraw();

Callers

nothing calls this directly

Calls 2

createTemporaryFileFunction · 0.85
replaceFileWithTextFunction · 0.85

Tested by

no test coverage detected