* Mark this window's data as invalid (in need of re-computing) * @param data The data to invalidate with * @param gui_scope Whether the function is called from GUI scope. */
| 3235 | * @param gui_scope Whether the function is called from GUI scope. |
| 3236 | */ |
| 3237 | void Window::InvalidateData(int data, bool gui_scope) |
| 3238 | { |
| 3239 | this->SetDirty(); |
| 3240 | if (!gui_scope) { |
| 3241 | /* Schedule GUI-scope invalidation for next redraw. */ |
| 3242 | this->scheduled_invalidation_data.push_back(data); |
| 3243 | } |
| 3244 | this->OnInvalidateData(data, gui_scope); |
| 3245 | } |
| 3246 | |
| 3247 | /** |
| 3248 | * Process all scheduled invalidations. |
no test coverage detected