| 11 | #include "ModulatableSlider.h" |
| 12 | |
| 13 | ModulatableSlider::ModulatableSlider() |
| 14 | { |
| 15 | // Default values |
| 16 | parameterID = ""; |
| 17 | lfoSource = 0; |
| 18 | lfoAmount = 0.0; |
| 19 | lfoValue = 0.0; |
| 20 | isModHandleMouseOver = false; |
| 21 | isModHandleMouseDown = false; |
| 22 | isDraggingMainSlider = false; |
| 23 | |
| 24 | addAndMakeVisible(label); |
| 25 | label.setJustificationType(juce::Justification::centred); |
| 26 | label.setFont(juce::Font { juce::FontOptions().withName(KNOB_FONT).withHeight(KNOB_FONT_SIZE).withStyle("Plain") }); |
| 27 | setTextBoxStyle(juce::Slider::NoTextBox, false, 0, 0); |
| 28 | } |
| 29 | |
| 30 | bool ModulatableSlider::hitTest(int x, int y) |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected