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

Method updateArrows

src/Interface/TextList.cpp:829–836  ·  view source on GitHub ↗

* Updates the visibility of the arrow buttons according to * the current scroll position. */

Source from the content-addressed store, hash-verified

827 * the current scroll position.
828 */
829void TextList::updateArrows()
830{
831 _up->setVisible(_rows.size() > _visibleRows /*&& _scroll > 0*/);
832 _down->setVisible(_rows.size() > _visibleRows /*&& _scroll < _rows.size() - _visibleRows*/);
833 _scrollbar->setVisible(_rows.size() > _visibleRows);
834 _scrollbar->invalidate();
835 _scrollbar->blit(this);
836}
837
838/**
839 * Updates the amount of visible rows according to the

Callers

nothing calls this directly

Calls 3

invalidateMethod · 0.80
setVisibleMethod · 0.45
blitMethod · 0.45

Tested by

no test coverage detected