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

Method FindWindowSettingsByID

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

15704// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names.
15705// This is called once per window .ini entry + once per newly instantiated window.
15706ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id)
15707{
15708 ImGuiContext& g = *GImGui;
15709 for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings))
15710 if (settings->ID == id && !settings->WantDelete)
15711 return settings;
15712 return NULL;
15713}
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)

Callers

nothing calls this directly

Calls 2

next_chunkMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected