| 85 | } |
| 86 | |
| 87 | void StatisticsWindow::processIntern() |
| 88 | { |
| 89 | if (ImGui::BeginChild("##statistics", {0, _settingsOpen ? -_settingsHeight : -scale(40.0f)})) { |
| 90 | if (ImGui::BeginTabBar("##Statistics", ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_FittingPolicyResizeDown)) { |
| 91 | |
| 92 | if (ImGui::BeginTabItem("Timelines")) { |
| 93 | if (ImGui::BeginChild("##timelines", ImVec2(0, 0), 0)) { |
| 94 | processTimelinesTab(); |
| 95 | } |
| 96 | ImGui::EndChild(); |
| 97 | ImGui::EndTabItem(); |
| 98 | } |
| 99 | |
| 100 | if (ImGui::BeginTabItem("Histograms")) { |
| 101 | if (ImGui::BeginChild("##histograms", ImVec2(0, 0), 0)) { |
| 102 | processHistogramsTab(); |
| 103 | } |
| 104 | ImGui::EndChild(); |
| 105 | ImGui::EndTabItem(); |
| 106 | } |
| 107 | |
| 108 | if (ImGui::BeginTabItem("Throughput")) { |
| 109 | if (ImGui::BeginChild("##throughput", ImVec2(0, 0), 0)) { |
| 110 | processTablesTab(); |
| 111 | } |
| 112 | ImGui::EndChild(); |
| 113 | ImGui::EndTabItem(); |
| 114 | } |
| 115 | |
| 116 | ImGui::EndTabBar(); |
| 117 | } |
| 118 | } |
| 119 | ImGui::EndChild(); |
| 120 | processSettings(); |
| 121 | } |
| 122 | |
| 123 | void StatisticsWindow::processTimelinesTab() |
| 124 | { |