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

Method setY

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

99* @param y Y position in pixels.
100*/
101void TextList::setY(int y)
102{
103 Surface::setY(y);
104 _up->setY(getY());
105 _down->setY(getY() + getHeight() - 14);
106 _scrollbar->setY(_up->getY() + _up->getHeight());
107 if (_selector != 0)
108 _selector->setY(getY());
109}
110
111/**
112 * Gets the arrowsLeftEdge.

Callers 3

drawMethod · 0.45
blitMethod · 0.45
mouseOverMethod · 0.45

Calls 2

getYMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected