| 86 | } |
| 87 | |
| 88 | void ScrollView::notifyScrollChangePosition(ScrollBar* _sender, size_t _position) |
| 89 | { |
| 90 | if (_sender == mVScroll) |
| 91 | { |
| 92 | IntPoint point = getClientWidget()->getPosition(); |
| 93 | point.top = -(int)_position; |
| 94 | getClientWidget()->setPosition(point); |
| 95 | } |
| 96 | else if (_sender == mHScroll) |
| 97 | { |
| 98 | IntPoint point = getClientWidget()->getPosition(); |
| 99 | point.left = -(int)_position; |
| 100 | getClientWidget()->setPosition(point); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void ScrollView::notifyMouseWheel(Widget* _sender, int _rel) |
| 105 | { |
nothing calls this directly
no test coverage detected