MCPcopy Create free account
hub / github.com/ZeroMemoryEx/Chaos-Rootkit / BringWindowToDisplayFront

Method BringWindowToDisplayFront

ring3-gui/libs/imgui/imgui.cpp:6882–6895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6880}
6881
6882void ImGui::BringWindowToDisplayFront(ImGuiWindow* window)
6883{
6884 ImGuiContext& g = *GImGui;
6885 ImGuiWindow* current_front_window = g.Windows.back();
6886 if (current_front_window == window || current_front_window->RootWindow == window) // Cheap early out (could be better)
6887 return;
6888 for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window
6889 if (g.Windows[i] == window)
6890 {
6891 memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*));
6892 g.Windows[g.Windows.Size - 1] = window;
6893 break;
6894 }
6895}
6896
6897void ImGui::BringWindowToDisplayBack(ImGuiWindow* window)
6898{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected