MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / FindWindowSettingsByWindow

Method FindWindowSettingsByWindow

imgui_tiny_app/imgui/imgui.cpp:16378–16384  ·  view source on GitHub ↗

This is faster if you are holding on a Window already as we don't need to perform a search.

Source from the content-addressed store, hash-verified

16376
16377// This is faster if you are holding on a Window already as we don't need to perform a search.
16378ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window)
16379{
16380 ImGuiContext& g = *GImGui;
16381 if (window->SettingsOffset != -1)
16382 return g.SettingsWindows.ptr_from_offset(window->SettingsOffset);
16383 return FindWindowSettingsByID(window->ID);
16384}
16385
16386// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
16387void ImGui::ClearWindowSettings(const char* name)

Callers

nothing calls this directly

Calls 1

ptr_from_offsetMethod · 0.80

Tested by

no test coverage detected