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

Method NWidgetSpacer

src/widget.cpp:1918–1922  ·  view source on GitHub ↗

* Generic spacer widget. * @param width Horizontal size of the spacer widget. * @param height Vertical size of the spacer widget. */

Source from the content-addressed store, hash-verified

1916 * @param height Vertical size of the spacer widget.
1917 */
1918NWidgetSpacer::NWidgetSpacer(int width, int height) : NWidgetResizeBase(NWID_SPACER, INVALID_WIDGET, 0, 0)
1919{
1920 this->SetMinimalSize(width, height);
1921 this->SetResize(0, 0);
1922}
1923
1924void NWidgetSpacer::SetupSmallestSize(Window *)
1925{

Callers

nothing calls this directly

Calls 2

SetMinimalSizeMethod · 0.80
SetResizeMethod · 0.80

Tested by

no test coverage detected