MCPcopy Create free account
hub / github.com/SatDump/SatDump / FindBottomMostVisibleWindowWithinBeginStack

Method FindBottomMostVisibleWindowWithinBeginStack

src-core/imgui/imgui.cpp:4968–4983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4966}
4967
4968ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
4969{
4970 ImGuiContext& g = *GImGui;
4971 ImGuiWindow* bottom_most_visible_window = parent_window;
4972 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
4973 {
4974 ImGuiWindow* window = g.Windows[i];
4975 if (window->Flags & ImGuiWindowFlags_ChildWindow)
4976 continue;
4977 if (!IsWindowWithinBeginStackOf(window, parent_window))
4978 break;
4979 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
4980 bottom_most_visible_window = window;
4981 }
4982 return bottom_most_visible_window;
4983}
4984
4985static void ImGui::RenderDimmedBackgrounds()
4986{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected