MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowVisitEach

Function WindowVisitEach

src/openrct2/interface/Window.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 void WindowVisitEach(std::function<void(WindowBase*)> func)
87 {
88 for (size_t i = 0; i < gWindowList.size(); i++)
89 {
90 auto& w = gWindowList[i];
91 if (w->flags.has(WindowFlag::dead))
92 continue;
93 func(w.get());
94 }
95 }
96
97 void WindowSetFlagForAllViewports(uint32_t viewportFlag, bool enabled)
98 {

Callers 15

WindowDispatchUpdateAllFunction · 0.85
WindowUpdateAllViewportsFunction · 0.85
WindowUpdateAllFunction · 0.85
WindowPushOthersRightFunction · 0.85
WindowPushOthersBelowFunction · 0.85
WindowCheckAllValidZoomFunction · 0.85
WindowDrawAllFunction · 0.85
ViewportRotateAllFunction · 0.85
GetUnzoomedViewportsFunction · 0.85
InvalidateByConditionMethod · 0.85

Calls 3

hasMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected