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

Method SetMatrixDimension

src/widget.cpp:1223–1226  ·  view source on GitHub ↗

* Set the matrix dimension. * @param columns The number of columns in the matrix (0 for autoscaling). * @param rows The number of rows in the matrix (0 for autoscaling). */

Source from the content-addressed store, hash-verified

1221 * @param rows The number of rows in the matrix (0 for autoscaling).
1222 */
1223void NWidgetCore::SetMatrixDimension(uint32_t columns, uint32_t rows)
1224{
1225 this->widget_data.matrix = { columns, rows };
1226}
1227
1228/**
1229 * Set the resize widget type of the nested widget.

Callers 2

DepotWindowMethod · 0.80
UpdateMatrixSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected