MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / FindWindowSettingsByWindow

Method FindWindowSettingsByWindow

include/imgui/imgui.cpp:15716–15722  ·  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

15714
15715// This is faster if you are holding on a Window already as we don't need to perform a search.
15716ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window)
15717{
15718 ImGuiContext& g = *GImGui;
15719 if (window->SettingsOffset != -1)
15720 return g.SettingsWindows.ptr_from_offset(window->SettingsOffset);
15721 return FindWindowSettingsByID(window->ID);
15722}
15723
15724// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
15725void ImGui::ClearWindowSettings(const char* name)

Callers

nothing calls this directly

Calls 1

ptr_from_offsetMethod · 0.80

Tested by

no test coverage detected