MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setPosition

Method setPosition

src/Interface/Slider.cpp:195–199  ·  view source on GitHub ↗

* Moves the slider to the new position. * @param value New value. */

Source from the content-addressed store, hash-verified

193 * @param value New value.
194 */
195void Slider::setPosition(double pos)
196{
197 _pos = pos;
198 _button->setX((int)floor(_minX + (_maxX - _minX) * _pos));
199}
200
201/**
202 * Changes the range of values the slider

Callers 7

nextStageMethod · 0.45
dropItemMethod · 0.45
convertUnitMethod · 0.45
applyGravityMethod · 0.45
moveItemMethod · 0.45
moveMethod · 0.45
ufoFireWeaponMethod · 0.45

Calls 1

setXMethod · 0.45

Tested by

no test coverage detected