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

Method SetPIPRatio

src/widget.cpp:1556–1561  ·  view source on GitHub ↗

* Set additional pre/inter/post space for the container. * * @param pip_ratio_pre Ratio of additional space in front of the first child widget (above * for the vertical container, at the left for the horizontal container). * @param pip_ratio_inter Ratio of additional space between two child widgets. * @param pip_ratio_post Ratio of additional space after the last chi

Source from the content-addressed store, hash-verified

1554 * vertical container, at the right for the horizontal container).
1555 */
1556void NWidgetPIPContainer::SetPIPRatio(uint8_t pip_ratio_pre, uint8_t pip_ratio_inter, uint8_t pip_ratio_post)
1557{
1558 this->pip_ratio_pre = pip_ratio_pre;
1559 this->pip_ratio_inter = pip_ratio_inter;
1560 this->pip_ratio_post = pip_ratio_post;
1561}
1562
1563void NWidgetHorizontal::SetupSmallestSize(Window *w)
1564{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected