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

Method setHeight

src/Interface/TextList.cpp:432–439  ·  view source on GitHub ↗

* Changes the height of the text list. * @param height New height in pixels. */

Source from the content-addressed store, hash-verified

430 * @param height New height in pixels.
431 */
432void TextList::setHeight(int height)
433{
434 Surface::setHeight(height);
435 setY(getY());
436 int h = std::max(_down->getY() - _up->getY() - _up->getHeight(), 1);
437 _scrollbar->setHeight(h);
438 updateVisible();
439}
440
441/**
442 * Changes the color of the text in the list. This doesn't change

Callers 2

addRowMethod · 0.45
setDropdownMethod · 0.45

Calls 2

getYMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected