MCPcopy Create free account
hub / github.com/axmolengine/axmol / updateLength

Method updateLength

core/ui/UIScrollViewBar.cpp:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void ScrollViewBar::updateLength(float length)
176{
177 float ratio = length / _body->getTextureRect().size.height;
178 _body->setScaleY(ratio);
179 _upperHalfCircle->setPositionY(_body->getPositionY() + length);
180}
181
182void ScrollViewBar::onEnter()
183{

Callers

nothing calls this directly

Calls 3

setScaleYMethod · 0.45
setPositionYMethod · 0.45
getPositionYMethod · 0.45

Tested by

no test coverage detected