| 1304 | } |
| 1305 | |
| 1306 | void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override |
| 1307 | { |
| 1308 | switch (widget) { |
| 1309 | case WID_SCMF_FACE: |
| 1310 | size = maxdim(size, GetScaledSpriteSize(SPR_GRADIENT)); |
| 1311 | break; |
| 1312 | |
| 1313 | case WID_SCMF_STYLE: |
| 1314 | size.height = this->line_height; |
| 1315 | break; |
| 1316 | |
| 1317 | case WID_SCMF_PARTS: |
| 1318 | fill.height = resize.height = this->line_height; |
| 1319 | size.width = GetMaximumFacePartsWidth(); |
| 1320 | size.height = resize.height * 5; |
| 1321 | break; |
| 1322 | } |
| 1323 | } |
| 1324 | |
| 1325 | void DrawWidget(const Rect &r, WidgetID widget) const override |
| 1326 | { |
nothing calls this directly
no test coverage detected