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

Method notifyScrollChangePosition

MyGUIEngine/src/MyGUI_ScrollView.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

getPositionMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected