MCPcopy Create free account
hub / github.com/clementgallet/libTAS / FindWindowSettingsByWindow

Method FindWindowSettingsByWindow

src/external/imgui/imgui.cpp:13355–13361  ·  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

13353
13354// This is faster if you are holding on a Window already as we don't need to perform a search.
13355ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window)
13356{
13357 ImGuiContext& g = *GImGui;
13358 if (window->SettingsOffset != -1)
13359 return g.SettingsWindows.ptr_from_offset(window->SettingsOffset);
13360 return FindWindowSettingsByID(window->ID);
13361}
13362
13363// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
13364void ImGui::ClearWindowSettings(const char* name)

Callers

nothing calls this directly

Calls 1

ptr_from_offsetMethod · 0.80

Tested by

no test coverage detected