MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / getModulationHandleBounds

Method getModulationHandleBounds

Source/GUI/ModulatableSlider.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53juce::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
66bool ModulatableSlider::isMouseOverMainSlider() const

Callers 1

drawModulationVisualsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected