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

Method setX

src/Interface/TextList.cpp:87–95  ·  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

85* @param x X position in pixels.
86*/
87void TextList::setX(int x)
88{
89 Surface::setX(x);
90 _up->setX(getX() + getWidth() + _scrollPos);
91 _down->setX(getX() + getWidth() + _scrollPos);
92 _scrollbar->setX(getX() + getWidth() + _scrollPos);
93 if (_selector != 0)
94 _selector->setX(getX());
95}
96
97/**
98* Changes the position of the surface in the Y axis.

Callers 1

setScrollingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected