MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / FindBottomMostVisibleWindowWithinBeginStack

Method FindBottomMostVisibleWindowWithinBeginStack

KBotExt/imgui/imgui.cpp:4909–4924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4907}
4908
4909ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
4910{
4911 ImGuiContext& g = *GImGui;
4912 ImGuiWindow* bottom_most_visible_window = parent_window;
4913 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
4914 {
4915 ImGuiWindow* window = g.Windows[i];
4916 if (window->Flags & ImGuiWindowFlags_ChildWindow)
4917 continue;
4918 if (!IsWindowWithinBeginStackOf(window, parent_window))
4919 break;
4920 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
4921 bottom_most_visible_window = window;
4922 }
4923 return bottom_most_visible_window;
4924}
4925
4926static void ImGui::RenderDimmedBackgrounds()
4927{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected