MCPcopy Create free account
hub / github.com/Raais/ImStudio / FindBottomMostVisibleWindowWithinBeginStack

Method FindBottomMostVisibleWindowWithinBeginStack

src/third-party/imgui/imgui.cpp:4711–4726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4709}
4710
4711ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
4712{
4713 ImGuiContext& g = *GImGui;
4714 ImGuiWindow* bottom_most_visible_window = parent_window;
4715 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
4716 {
4717 ImGuiWindow* window = g.Windows[i];
4718 if (window->Flags & ImGuiWindowFlags_ChildWindow)
4719 continue;
4720 if (!IsWindowWithinBeginStackOf(window, parent_window))
4721 break;
4722 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
4723 bottom_most_visible_window = window;
4724 }
4725 return bottom_most_visible_window;
4726}
4727
4728static void ImGui::RenderDimmedBackgrounds()
4729{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected