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

Method Increase

src/widgets/ASlider.cpp:1595–1616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595void LWSlider::Increase(float steps)
1596{
1597 float stepValue = mStepValue;
1598
1599 if ( stepValue == 0.0 )
1600 {
1601 stepValue = ( mMaxValue - mMinValue ) / 10.0;
1602 }
1603
1604 mCurrentValue += ( steps * stepValue );
1605
1606 if ( mCurrentValue < mMinValue )
1607 {
1608 mCurrentValue = mMinValue;
1609 }
1610 else if ( mCurrentValue > mMaxValue )
1611 {
1612 mCurrentValue = mMaxValue;
1613 }
1614
1615 Refresh();
1616}
1617
1618void LWSlider::Decrease(float steps)
1619{

Callers 5

AdjustPlaySpeedMethod · 0.45
AdjustOutputGainMethod · 0.45
AdjustInputGainMethod · 0.45
OnTrackPanRightFunction · 0.45
OnTrackGainIncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected