MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / InvalidateData

Method InvalidateData

src/window.cpp:3237–3245  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

3235 * @param gui_scope Whether the function is called from GUI scope.
3236 */
3237void 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.

Callers 15

HandleEditBoxKeyMethod · 0.95
SetFilterStringMethod · 0.45
OnClickMethod · 0.45
OnClickMethod · 0.45
OnEditboxChangedMethod · 0.45
OnClickMethod · 0.45
OnClickMethod · 0.45
OnDropdownSelectMethod · 0.45
OnQueryTextFinishedMethod · 0.45
OnKeyPressMethod · 0.45

Calls 3

SetDirtyMethod · 0.95
OnInvalidateDataMethod · 0.95
push_backMethod · 0.80

Tested by

no test coverage detected