| 1709 | } |
| 1710 | |
| 1711 | void EditBox::notifyScrollChangePosition(ScrollBar* _sender, size_t _position) |
| 1712 | { |
| 1713 | if (mClientText == nullptr) |
| 1714 | return; |
| 1715 | |
| 1716 | if (_sender == mVScroll) |
| 1717 | { |
| 1718 | IntPoint point = mClientText->getViewOffset(); |
| 1719 | point.top = _position; |
| 1720 | mClientText->setViewOffset(point); |
| 1721 | } |
| 1722 | else if (_sender == mHScroll) |
| 1723 | { |
| 1724 | IntPoint point = mClientText->getViewOffset(); |
| 1725 | point.left = _position; |
| 1726 | mClientText->setViewOffset(point); |
| 1727 | } |
| 1728 | } |
| 1729 | |
| 1730 | void EditBox::notifyMouseWheel(Widget* _sender, int _rel) |
| 1731 | { |
nothing calls this directly
no test coverage detected