MCPcopy Create free account
hub / github.com/asb2m10/dexed / mouseDrag

Method mouseDrag

Source/ProgramListBox.h:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 void mouseDrag(const MouseEvent &event) override {
140 if ( ! pgmListBox->hasContent )
141 return;
142 if ( event.getDistanceFromDragStart() < 7 )
143 return;
144
145 if (DragAndDropContainer* const dragContainer = DragAndDropContainer::findParentDragContainerFor(this)) {
146 ScaledImage snapshot;
147 void *src = pgmListBox->cartContent.getRawVoice() + (idx*128);
148 var description = var(src, 128);
149 dragContainer->startDragging(description, this, snapshot, false);
150 }
151 }
152
153 bool isInterestedInDragSource(const SourceDetails& dragSourceDetails) override {
154 if ( pgmListBox->readOnly )

Callers

nothing calls this directly

Calls 1

getRawVoiceMethod · 0.80

Tested by

no test coverage detected