============================================================================== */
| 18 | /* |
| 19 | */ |
| 20 | class FreqTextLabel : public juce::Component, juce::Timer |
| 21 | { |
| 22 | public: |
| 23 | FreqTextLabel (VerticalLine& v); |
| 24 | ~FreqTextLabel() override; |
| 25 | |
| 26 | void paint (juce::Graphics&) override; |
| 27 | void resized() override; |
| 28 | void setFreq (int freq); |
| 29 | int getFreq(); |
| 30 | void setScale (float scale); |
| 31 | bool isMouseOverCustom(); |
| 32 | void timerCallback() override; |
| 33 | void setFade (bool update, bool isFadeIn); |
| 34 | |
| 35 | private: |
| 36 | VerticalLine& verticalLine; |
| 37 | int mFrequency; |
| 38 | float mScale = 1.0f; |
| 39 | bool mUpdate = false; |
| 40 | bool mFadeIn = true; |
| 41 | int currentStep = 0; |
| 42 | const int maxStep = 5; |
| 43 | |
| 44 | juce::Label freqLabel; |
| 45 | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FreqTextLabel) |
| 46 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected