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

Method SetFill

src/widget.cpp:1090–1094  ·  view source on GitHub ↗

* Set the filling of the widget from initial size. * @param fill_x Horizontal fill step size, \c 0 means no filling is allowed. * @param fill_y Vertical fill step size, \c 0 means no filling is allowed. */

Source from the content-addressed store, hash-verified

1088 * @param fill_y Vertical fill step size, \c 0 means no filling is allowed.
1089 */
1090void NWidgetResizeBase::SetFill(uint fill_x, uint fill_y)
1091{
1092 this->fill_x = fill_x;
1093 this->fill_y = fill_y;
1094}
1095
1096/**
1097 * Set resize step of the widget.

Callers 10

NWidgetBadgeFilterMethod · 0.80
MakeNWidgetCompanyLinesFunction · 0.80
NWidgetScrollbarMethod · 0.80
NWidgetLeafMethod · 0.80
MakeCompanyButtonRowsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected