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

Function InvalidateWindowData

src/window.cpp:3297–3304  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

3295 * @param gui_scope Whether the call is done from GUI scope
3296 */
3297void 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)

Callers 15

CmdCreateStoryPageFunction · 0.70
CmdRemoveStoryPageFunction · 0.70
OnClickMethod · 0.70
PostDestructorMethod · 0.70
DoCreateNewIndustryFunction · 0.70
CmdIndustrySetTextFunction · 0.70
industry_cmd.cppFile · 0.70
InvalidateVehicleOrderFunction · 0.70
CheckShipStayInDepotFunction · 0.70
CmdConvertRailFunction · 0.70

Calls 1

InvalidateDataMethod · 0.45

Tested by

no test coverage detected