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

Method setArrowColumn

src/Interface/TextList.cpp:663–669  ·  view source on GitHub ↗

* Sets the position of the column of arrow buttons * in the text list. * @param pos X in pixels (-1 to disable). * @param type Arrow orientation type. */

Source from the content-addressed store, hash-verified

661 * @param type Arrow orientation type.
662 */
663void TextList::setArrowColumn(int pos, ArrowOrientation type)
664{
665 _arrowPos = pos;
666 _arrowType = type;
667 _arrowsLeftEdge = getX() + _arrowPos;
668 _arrowsRightEdge = _arrowsLeftEdge + 12 + 11;
669}
670
671/**
672 * Sets a function to be called every time the left arrows are mouse clicked.

Callers 6

CraftSoldiersStateMethod · 0.80
SellStateMethod · 0.80
TransferItemsStateMethod · 0.80
CraftEquipmentStateMethod · 0.80
PurchaseStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected