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

Method SetPadding

src/widget_type.h:192–199  ·  view source on GitHub ↗

* Set additional space (padding) around the widget. * @param top Amount of additional space above the widget. * @param right Amount of additional space right of the widget. * @param bottom Amount of additional space below the widget. * @param left Amount of additional space left of the widget. */

Source from the content-addressed store, hash-verified

190 * @param left Amount of additional space left of the widget.
191 */
192 inline void SetPadding(uint8_t top, uint8_t right, uint8_t bottom, uint8_t left)
193 {
194 this->uz_padding.top = top;
195 this->uz_padding.right = right;
196 this->uz_padding.bottom = bottom;
197 this->uz_padding.left = left;
198 this->AdjustPaddingForZoom();
199 }
200
201 /**
202 * Set additional space (padding) around the widget.

Callers 2

MakeNWidgetCompanyLinesFunction · 0.80

Calls 1

AdjustPaddingForZoomMethod · 0.95

Tested by

no test coverage detected