| 176 | } |
| 177 | |
| 178 | void ControlPointComponent::movePointWithMouse(const juce::Point<int> &mouseDownPosition) { |
| 179 | int newX = clipX(mouseDownPosition.getX(), draggedPointIndex); |
| 180 | int newY = clipY(mouseDownPosition.getY(), draggedPointIndex); |
| 181 | draggedPoint->setXY(newX, newY); |
| 182 | this->repaint(); |
| 183 | } |
| 184 | |
| 185 | juce::Point<int>* ControlPointComponent::findNearbyPoint(juce::Point<int> pointToCompare, int* out_nearestPointIndex = nullptr) { |
| 186 | for(int i=0; i<points.size(); ++i) { |
nothing calls this directly
no outgoing calls
no test coverage detected