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

Method SetResize

src/widget.cpp:1101–1105  ·  view source on GitHub ↗

* Set resize step of the widget. * @param resize_x Resize step in horizontal direction, value \c 0 means no resize, otherwise the step size in pixels. * @param resize_y Resize step in vertical direction, value \c 0 means no resize, otherwise the step size in pixels. */

Source from the content-addressed store, hash-verified

1099 * @param resize_y Resize step in vertical direction, value \c 0 means no resize, otherwise the step size in pixels.
1100 */
1101void NWidgetResizeBase::SetResize(uint resize_x, uint resize_y)
1102{
1103 this->resize_x = resize_x;
1104 this->resize_y = resize_y;
1105}
1106
1107/**
1108 * Try to set optimum widget size for a multiline text widget.

Callers 9

NWidgetBadgeFilterMethod · 0.80
NWidgetSpacerMethod · 0.80
NWidgetScrollbarMethod · 0.80
NWidgetLeafMethod · 0.80
MakeCompanyButtonRowsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected