| 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 ) |
nothing calls this directly
no test coverage detected