| 51 | } |
| 52 | |
| 53 | juce::Rectangle<float> ModulatableSlider::getModulationHandleBounds() |
| 54 | { |
| 55 | auto bounds = getLocalBounds().toFloat().reduced(10 * 1.0f); |
| 56 | auto radius = juce::jmin(bounds.getWidth(), bounds.getHeight()) / 2.0f; |
| 57 | float handleSize = radius * 0.4f; |
| 58 | |
| 59 | float handleCenterX = bounds.getCentreX() + (radius * 0.85f); |
| 60 | float handleCenterY = bounds.getCentreY() + (radius * 0.85f); |
| 61 | |
| 62 | return juce::Rectangle<float>(handleSize, handleSize).withCentre({ handleCenterX, handleCenterY }); |
| 63 | } |
| 64 | |
| 65 | // New helper function |
| 66 | bool ModulatableSlider::isMouseOverMainSlider() const |
no outgoing calls
no test coverage detected