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

Method FindBottomMostVisibleWindowWithinBeginStack

include/imgui/imgui.cpp:5909–5924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5907}
5908
5909ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
5910{
5911 ImGuiContext& g = *GImGui;
5912 ImGuiWindow* bottom_most_visible_window = parent_window;
5913 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
5914 {
5915 ImGuiWindow* window = g.Windows[i];
5916 if (window->Flags & ImGuiWindowFlags_ChildWindow)
5917 continue;
5918 if (!IsWindowWithinBeginStackOf(window, parent_window))
5919 break;
5920 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
5921 bottom_most_visible_window = window;
5922 }
5923 return bottom_most_visible_window;
5924}
5925
5926static void ImGui::RenderDimmedBackgrounds()
5927{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected