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

Method SetToolbarMinimalSize

src/widget.cpp:1055–1058  ·  view source on GitHub ↗

* Set minimal size of the widget in toolbar-icon-relative width. * @param toolbar_size Toolbar button size of the widget. */

Source from the content-addressed store, hash-verified

1053 * @param toolbar_size Toolbar button size of the widget.
1054 */
1055void NWidgetResizeBase::SetToolbarMinimalSize(uint8_t toolbar_size)
1056{
1057 this->toolbar_size = toolbar_size;
1058}
1059
1060/**
1061 * Set absolute (post-scaling) minimal size of the widget.

Callers 2

MakeMainToolbarFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected