MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / CheckCondition

Method CheckCondition

plugins/base/macro-condition-window.cpp:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool MacroConditionWindow::CheckCondition()
115{
116 WindowQueryOptions options;
117 options.focus = _focus;
118 options.fullscreen = _fullscreen;
119 options.maximized = _maximized;
120 options.geometry = true;
121#ifdef _WIN32
122 options.windowClass = true;
123 options.text = _checkText;
124#endif
125
126 const auto windows = GetWindows(options);
127 bool match = FindMatch(windows);
128 match = match && (!_windowFocusChanged || foregroundWindowChanged());
129 return match;
130}
131
132bool MacroConditionWindow::Save(obs_data_t *obj) const
133{

Callers

nothing calls this directly

Calls 2

foregroundWindowChangedFunction · 0.85
GetWindowsFunction · 0.50

Tested by

no test coverage detected