* Invalidate a widget, i.e. mark it as being changed and in need of redraw. * @param widget_index the widget to redraw. */
| 556 | * @param widget_index the widget to redraw. |
| 557 | */ |
| 558 | void Window::SetWidgetDirty(WidgetID widget_index) const |
| 559 | { |
| 560 | /* Sometimes this function is called before the window is even fully initialized */ |
| 561 | auto it = this->widget_lookup.find(widget_index); |
| 562 | if (it == std::end(this->widget_lookup)) return; |
| 563 | |
| 564 | it->second->SetDirty(this); |
| 565 | } |
| 566 | |
| 567 | /** |
| 568 | * A hotkey has been pressed. |
no test coverage detected