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

Function SetPadding

src/widget_type.h:1335–1338  ·  view source on GitHub ↗

* Widget part function for setting additional space around a widget. * Parameters start above the widget, and are specified in clock-wise direction. * @param top The padding above the widget. * @param right The padding right of the widget. * @param bottom The padding below the widget. * @param left The padding left of the widget. * @ingroup NestedWidgetParts */

Source from the content-addressed store, hash-verified

1333 * @ingroup NestedWidgetParts
1334 */
1335constexpr NWidgetPart SetPadding(uint8_t top, uint8_t right, uint8_t bottom, uint8_t left)
1336{
1337 return NWidgetPart{WPT_PADDING, NWidgetPartPaddings{left, top, right, bottom}};
1338}
1339
1340/**
1341 * Widget part function for setting additional space around a widget.

Callers 15

intro_gui.cppFile · 0.85
signs_gui.cppFile · 0.85
terraform_gui.cppFile · 0.85
fios_gui.cppFile · 0.85
NestedGoalWidgetsClass · 0.85
viewport_gui.cppFile · 0.85
newgrf_gui.cppFile · 0.85
osk_gui.cppFile · 0.85
bootstrap_gui.cppFile · 0.85
toolbar_gui.cppFile · 0.85
error_gui.cppFile · 0.85
tree_gui.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected