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

Method InvalidateByCondition

src/openrct2-ui/WindowManager.cpp:1236–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234 */
1235 template<typename TPred>
1236 static void InvalidateByCondition(TPred pred)
1237 {
1238 WindowVisitEach([pred](WindowBase* w) {
1239 if (pred(w))
1240 {
1241 w->invalidate();
1242 }
1243 });
1244 }
1245
1246 /**
1247 * Invalidates all windows with the specified window class.

Callers

nothing calls this directly

Calls 2

WindowVisitEachFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected