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

Method SetMinimalSize

src/widget.cpp:1045–1049  ·  view source on GitHub ↗

* Set minimal size of the widget. * @param min_x Horizontal minimal size of the widget. * @param min_y Vertical minimal size of the widget. */

Source from the content-addressed store, hash-verified

1043 * @param min_y Vertical minimal size of the widget.
1044 */
1045void NWidgetResizeBase::SetMinimalSize(uint min_x, uint min_y)
1046{
1047 this->uz_min_x = std::max(this->uz_min_x, min_x);
1048 this->uz_min_y = std::max(this->uz_min_y, min_y);
1049}
1050
1051/**
1052 * Set minimal size of the widget in toolbar-icon-relative width.

Callers 8

AddKeyFunction · 0.80
MakeNWidgetCompanyLinesFunction · 0.80
NWidgetSpacerMethod · 0.80
NWidgetLeafMethod · 0.80
MakeCompanyButtonRowsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected