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

Method UpdateWidgetSize

src/misc_gui.cpp:1114–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112 }
1113
1114 void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override
1115 {
1116 if (widget != WID_Q_TEXT) return;
1117
1118 size = GetStringMultiLineBoundingBox(this->message.GetDecodedString(), size);
1119 }
1120
1121 void DrawWidget(const Rect &r, WidgetID widget) const override
1122 {

Callers

nothing calls this directly

Calls 2

GetDecodedStringMethod · 0.80

Tested by

no test coverage detected