MCPcopy Create free account
hub / github.com/cinder/Cinder / FindBottomMostVisibleWindowWithinBeginStack

Method FindBottomMostVisibleWindowWithinBeginStack

src/imgui/imgui.cpp:5761–5776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5759}
5760
5761ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window)
5762{
5763 ImGuiContext& g = *GImGui;
5764 ImGuiWindow* bottom_most_visible_window = parent_window;
5765 for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--)
5766 {
5767 ImGuiWindow* window = g.Windows[i];
5768 if (window->Flags & ImGuiWindowFlags_ChildWindow)
5769 continue;
5770 if (!IsWindowWithinBeginStackOf(window, parent_window))
5771 break;
5772 if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window))
5773 bottom_most_visible_window = window;
5774 }
5775 return bottom_most_visible_window;
5776}
5777
5778static void ImGui::RenderDimmedBackgrounds()
5779{

Callers

nothing calls this directly

Calls 2

IsWindowActiveAndVisibleFunction · 0.85
GetWindowDisplayLayerFunction · 0.85

Tested by

no test coverage detected