MCPcopy Create free account
hub / github.com/TheRealMJP/DXRPathTracer / BringWindowToFront

Method BringWindowToFront

SampleFramework12/v1.02/ImGui/imgui.cpp:5125–5138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5123}
5124
5125void ImGui::BringWindowToFront(ImGuiWindow* window)
5126{
5127 ImGuiContext& g = *GImGui;
5128 ImGuiWindow* current_front_window = g.Windows.back();
5129 if (current_front_window == window || current_front_window->RootWindow == window)
5130 return;
5131 for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the front most window
5132 if (g.Windows[i] == window)
5133 {
5134 g.Windows.erase(g.Windows.Data + i);
5135 g.Windows.push_back(window);
5136 break;
5137 }
5138}
5139
5140void ImGui::BringWindowToBack(ImGuiWindow* window)
5141{

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected