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

Method setY

src/Interface/Slider.cpp:93–100  ·  view source on GitHub ↗

* Changes the position of the surface in the Y axis. * @param y Y position in pixels. */

Source from the content-addressed store, hash-verified

91 * @param y Y position in pixels.
92 */
93void Slider::setY(int y)
94{
95 Surface::setY(y);
96 _txtMinus->setY(y);
97 _txtPlus->setY(y);
98 _frame->setY(getY() + (getHeight() - _thickness) / 2);
99 _button->setY(getY());
100}
101
102/**
103 * Changes the various resources needed for text rendering.

Callers 3

drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected