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

Method setFade

Source/Panels/SpectrogramPanel/FreqTextLabel.cpp:126–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void FreqTextLabel::setFade(bool update, bool isFadeIn)
127{
128 mUpdate = update;
129 mFadeIn = isFadeIn;
130
131 // This ensures a component with alpha=0 is still visible to the mouse
132 // so that a mouse-over can trigger the fade-in.
133 if (isFadeIn && getAlpha() == 0.0f)
134 setAlpha(0.01f);
135
136 // Start the timer only if an animation is requested and the timer isn't already running.
137 if (mUpdate && ! isTimerRunning())
138 {
139 startTimerHz(60);
140 }
141}
142
143void FreqTextLabel::setFreq(int freq)
144{

Callers 1

paintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected