| 1593 | } |
| 1594 | |
| 1595 | void 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 | |
| 1618 | void LWSlider::Decrease(float steps) |
| 1619 | { |
no outgoing calls
no test coverage detected