| 1522 | } |
| 1523 | |
| 1524 | void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override |
| 1525 | { |
| 1526 | if (widget == WID_BS_DRAG_SIGNALS_DENSITY_LABEL) { |
| 1527 | /* Two digits for signals density. */ |
| 1528 | size.width = std::max(size.width, 2 * GetDigitWidth() + padding.width + WidgetDimensions::scaled.framerect.Horizontal()); |
| 1529 | } else if (IsInsideMM(widget, WID_BS_SEMAPHORE_NORM, WID_BS_ELECTRIC_PBS_OWAY + 1)) { |
| 1530 | size.width = std::max(size.width, this->sig_sprite_size.width + padding.width); |
| 1531 | size.height = std::max(size.height, this->sig_sprite_size.height + padding.height); |
| 1532 | } |
| 1533 | } |
| 1534 | |
| 1535 | std::string GetWidgetString(WidgetID widget, StringID stringid) const override |
| 1536 | { |
nothing calls this directly
no test coverage detected