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

Method setX

src/Interface/Slider.cpp:77–87  ·  view source on GitHub ↗

* Changes the position of the surface in the X axis. * @param x X position in pixels. */

Source from the content-addressed store, hash-verified

75 * @param x X position in pixels.
76 */
77void Slider::setX(int x)
78{
79 Surface::setX(x);
80 _txtMinus->setX(x - 1);
81 _txtPlus->setX(x + getWidth() - _textness);
82 _frame->setX(getX() + _textness);
83
84 _minX = _frame->getX();
85 _maxX = _frame->getX() + _frame->getWidth() - _button->getWidth();
86 setValue(_pos);
87}
88
89/**
90 * Changes the position of the surface in the Y axis.

Callers 6

setComboBoxMethod · 0.45
setPositionMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45

Calls 2

getXMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected