MCPcopy Create free account
hub / github.com/clementgallet/libTAS / BringWindowToDisplayFront

Method BringWindowToDisplayFront

src/external/imgui/imgui.cpp:7105–7118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7103}
7104
7105void ImGui::BringWindowToDisplayFront(ImGuiWindow* window)
7106{
7107 ImGuiContext& g = *GImGui;
7108 ImGuiWindow* current_front_window = g.Windows.back();
7109 if (current_front_window == window || current_front_window->RootWindow == window) // Cheap early out (could be better)
7110 return;
7111 for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window
7112 if (g.Windows[i] == window)
7113 {
7114 memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*));
7115 g.Windows[g.Windows.Size - 1] = window;
7116 break;
7117 }
7118}
7119
7120void ImGui::BringWindowToDisplayBack(ImGuiWindow* window)
7121{

Callers

nothing calls this directly

Calls 1

backMethod · 0.80

Tested by

no test coverage detected