MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / FindWindowSettingsByID

Method FindWindowSettingsByID

KBotExt/imgui/imgui.cpp:13096–13103  ·  view source on GitHub ↗

We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. This is called once per window .ini entry + once per newly instantiated window.

Source from the content-addressed store, hash-verified

13094// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names.
13095// This is called once per window .ini entry + once per newly instantiated window.
13096ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id)
13097{
13098 ImGuiContext& g = *GImGui;
13099 for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings))
13100 if (settings->ID == id && !settings->WantDelete)
13101 return settings;
13102 return NULL;
13103}
13104
13105// This is faster if you are holding on a Window already as we don't need to perform a search.
13106ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window)

Callers

nothing calls this directly

Calls 2

next_chunkMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected