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

Function restoreDockGeometry

lib/macro/macro-dock-window.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static void restoreDockGeometry()
38{
39 std::lock_guard<std::mutex> lock(mutex);
40 for (const auto &[name, dock] : windows) {
41 const auto it = windowGeometries.find(name);
42 if (it == windowGeometries.end()) {
43 continue;
44 }
45
46 dock->GetWindow()->restoreState(it->second);
47 }
48}
49
50static void loadDocks(obs_data_t *obj)
51{

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
GetWindowMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected