MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyScrollChangePosition

Method notifyScrollChangePosition

MyGUIEngine/src/MyGUI_EditBox.cpp:1711–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

getViewOffsetMethod · 0.45
setViewOffsetMethod · 0.45

Tested by

no test coverage detected