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

Function SetAlignment

src/widget_type.h:1211–1214  ·  view source on GitHub ↗

* Widget part function for setting the alignment of text/images. * @param align Alignment of text/image within widget. * @ingroup NestedWidgetParts */

Source from the content-addressed store, hash-verified

1209 * @ingroup NestedWidgetParts
1210 */
1211constexpr NWidgetPart SetAlignment(StringAlignment align)
1212{
1213 return NWidgetPart{WPT_ALIGNMENT, NWidgetPartAlignment{align}};
1214}
1215
1216/**
1217 * Widget part function for setting filling.

Callers 11

intro_gui.cppFile · 0.85
toolbar_gui.cppFile · 0.85
news_gui.cppFile · 0.85
genworld_gui.cppFile · 0.85
graph_gui.cppFile · 0.85
company_gui.cppFile · 0.85
object_gui.cppFile · 0.85
settings_gui.cppFile · 0.85
network_gui.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected