| 1616 | } |
| 1617 | |
| 1618 | void 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 | |
| 1641 | void LWSlider::Refresh() |
| 1642 | { |
no outgoing calls
no test coverage detected