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

Method setScrollPosition

MyGUIEngine/src/MyGUI_ListBox.cpp:772–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770 }
771
772 void ListBox::setScrollPosition(size_t _position)
773 {
774 if (mWidgetScroll != nullptr)
775 {
776 if (mWidgetScroll->getScrollRange() > _position)
777 {
778 mWidgetScroll->setScrollPosition(_position);
779 _setScrollView(_position);
780 }
781 }
782 }
783
784 void ListBox::_setScrollView(size_t _position)
785 {

Callers 15

setFunction · 0.45
updateWidgetsMethod · 0.45
updateWidgetsMethod · 0.45
updateItemsMethod · 0.45
notifyMouseWheelMethod · 0.45
notifyEventActionMethod · 0.45
updateFromColourMethod · 0.45
notifyMouseWheelMethod · 0.45
updateCursorPositionMethod · 0.45

Calls 1

getScrollRangeMethod · 0.80

Tested by

no test coverage detected