* Mark window data of the window of a given class and specific window number as invalid (in need of re-computing) * * Note that by default the invalidation is not considered to be called from GUI scope. * That means only a part of invalidation is executed immediately. The rest is scheduled for the next redraw. * The asynchronous execution is important to prevent GUI code being executed from co
| 3295 | * @param gui_scope Whether the call is done from GUI scope |
| 3296 | */ |
| 3297 | void InvalidateWindowData(WindowClass cls, WindowNumber number, int data, bool gui_scope) |
| 3298 | { |
| 3299 | for (Window *w : Window::Iterate()) { |
| 3300 | if (w->window_class == cls && w->window_number == number) { |
| 3301 | w->InvalidateData(data, gui_scope); |
| 3302 | } |
| 3303 | } |
| 3304 | } |
| 3305 | |
| 3306 | /** |
| 3307 | * Mark window data of all windows of a given class as invalid (in need of re-computing) |
no test coverage detected