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

Method setTrackSize

MyGUIEngine/src/MyGUI_ScrollBar.cpp:374–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 }
373
374 void ScrollBar::setTrackSize(int _size)
375 {
376 if (mWidgetTrack != nullptr)
377 {
378 if (mVerticalAlignment)
379 mWidgetTrack->setSize(
380 mWidgetTrack->getWidth(),
381 ((int)_size < (int)mMinTrackSize) ? (int)mMinTrackSize : (int)_size);
382 else
383 mWidgetTrack->setSize(
384 ((int)_size < (int)mMinTrackSize) ? (int)mMinTrackSize : (int)_size,
385 mWidgetTrack->getHeight());
386 }
387 updateTrack();
388 }
389
390 void ScrollBar::setRepeatTriggerTime(float time)
391 {

Callers 7

setFunction · 0.80
updateScrollMethod · 0.80
updateScrollMethod · 0.80
insertItemAtMethod · 0.80
removeItemAtMethod · 0.80
updateScrollSizeMethod · 0.80

Calls 3

setSizeMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected