MCPcopy Create free account
hub / github.com/audacity/audacity / Decrease

Method Decrease

src/widgets/ASlider.cpp:1618–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1616}
1617
1618void LWSlider::Decrease(float steps)
1619{
1620 float stepValue = mStepValue;
1621
1622 if ( stepValue == 0.0 )
1623 {
1624 stepValue = ( mMaxValue - mMinValue ) / 10.0;
1625 }
1626
1627 mCurrentValue -= ( steps * stepValue );
1628
1629 if ( mCurrentValue < mMinValue )
1630 {
1631 mCurrentValue = mMinValue;
1632 }
1633 else if ( mCurrentValue > mMaxValue )
1634 {
1635 mCurrentValue = mMaxValue;
1636 }
1637
1638 Refresh();
1639}
1640
1641void LWSlider::Refresh()
1642{

Callers 5

AdjustPlaySpeedMethod · 0.45
AdjustOutputGainMethod · 0.45
AdjustInputGainMethod · 0.45
OnTrackPanLeftFunction · 0.45
OnTrackGainDecFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected