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

Method onDragStart

src/app/SvgButton.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void SvgButton::onDragStart(const DragStartEvent& e) {
48 if (e.button != GLFW_MOUSE_BUTTON_LEFT)
49 return;
50
51 if (frames.size() >= 2) {
52 sw->setSvg(frames[1]);
53 fb->setDirty();
54 }
55}
56
57
58void SvgButton::onDragEnd(const DragEndEvent& e) {

Callers

nothing calls this directly

Calls 3

setDirtyMethod · 0.80
sizeMethod · 0.45
setSvgMethod · 0.45

Tested by

no test coverage detected