| 2095 | } |
| 2096 | |
| 2097 | void EditBox::setHScrollPosition(size_t _index) |
| 2098 | { |
| 2099 | if (mClientText == nullptr) |
| 2100 | return; |
| 2101 | |
| 2102 | if (_index > mHRange) |
| 2103 | _index = mHRange; |
| 2104 | |
| 2105 | IntPoint point = mClientText->getViewOffset(); |
| 2106 | point.left = _index; |
| 2107 | |
| 2108 | mClientText->setViewOffset(point); |
| 2109 | // обновить скролы |
| 2110 | if (mHScroll != nullptr) |
| 2111 | mHScroll->setScrollPosition(point.left); |
| 2112 | } |
| 2113 | |
| 2114 | bool EditBox::getInvertSelected() const |
| 2115 | { |
no test coverage detected