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

Method FindBottomMostVisibleWindowWithinBeginStack

include/imgui/imgui.cpp:5945–5960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5943}
5944
5945ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
5946{
5947 ImGuiContext& g = *GImGui;
5948 ImGuiWindow* bottom_most_visible_window = parent_window;
5949 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
5950 {
5951 ImGuiWindow* window = g.Windows[i];
5952 if (window->Flags & ImGuiWindowFlags_ChildWindow)
5953 continue;
5954 if (!IsWindowWithinBeginStackOf(window, parent_window))
5955 break;
5956 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
5957 bottom_most_visible_window = window;
5958 }
5959 return bottom_most_visible_window;
5960}
5961
5962static void ImGui::RenderDimmedBackgrounds()
5963{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected