MCPcopy Create free account
hub / github.com/bluescan/tacentview / FindBottomMostVisibleWindowWithinBeginStack

Method FindBottomMostVisibleWindowWithinBeginStack

Contrib/imgui/imgui.cpp:4812–4827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4810}
4811
4812ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
4813{
4814 ImGuiContext& g = *GImGui;
4815 ImGuiWindow* bottom_most_visible_window = parent_window;
4816 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
4817 {
4818 ImGuiWindow* window = g.Windows[i];
4819 if (window->Flags & ImGuiWindowFlags_ChildWindow)
4820 continue;
4821 if (!IsWindowWithinBeginStackOf(window, parent_window))
4822 break;
4823 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
4824 bottom_most_visible_window = window;
4825 }
4826 return bottom_most_visible_window;
4827}
4828
4829static void ImGui::RenderDimmedBackgrounds()
4830{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected