MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetPIP

Method SetPIP

src/widget.cpp:1536–1545  ·  view source on GitHub ↗

* Set additional pre/inter/post space for the container. * * @param pip_pre Additional space in front of the first child widget (above * for the vertical container, at the left for the horizontal container). * @param pip_inter Additional space between two child widgets. * @param pip_post Additional space after the last child widget (below for the * vertic

Source from the content-addressed store, hash-verified

1534 * vertical container, at the right for the horizontal container).
1535 */
1536void NWidgetPIPContainer::SetPIP(uint8_t pip_pre, uint8_t pip_inter, uint8_t pip_post)
1537{
1538 this->uz_pip_pre = pip_pre;
1539 this->uz_pip_inter = pip_inter;
1540 this->uz_pip_post = pip_post;
1541
1542 this->pip_pre = ScaleGUITrad(this->uz_pip_pre);
1543 this->pip_inter = ScaleGUITrad(this->uz_pip_inter);
1544 this->pip_post = ScaleGUITrad(this->uz_pip_post);
1545}
1546
1547/**
1548 * Set additional pre/inter/post space for the container.

Callers 9

MakeTopKeysFunction · 0.80
MakeNumberKeysFunction · 0.80
MakeQwertyKeysFunction · 0.80
MakeAsdfgKeysFunction · 0.80
MakeZxcvbKeysFunction · 0.80
MakeSpacebarKeysFunction · 0.80
MakeTreeTypeButtonsFunction · 0.80
NWidgetSocialPluginsMethod · 0.80

Calls 1

ScaleGUITradFunction · 0.70

Tested by

no test coverage detected