mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 04:17:00 +00:00
ShowTestWindow: Graph checkbox under the label, also demo using BeginGroup/EndGroup()
This commit is contained in:
parent
2f0fb2bc34
commit
d953f8d99a
@ -9433,9 +9433,12 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
phase += 0.10f*values_offset;
|
phase += 0.10f*values_offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::PlotLines("Frame Times", &values.front(), (int)values.size(), (int)values_offset, "avg 0.0", -1.0f, 1.0f, ImVec2(0,80));
|
ImGui::PlotLines("##Graph", &values.front(), (int)values.size(), (int)values_offset, "avg 0.0", -1.0f, 1.0f, ImVec2(0,80));
|
||||||
|
ImGui::SameLine(0, (int)ImGui::GetStyle().ItemInnerSpacing.x);
|
||||||
ImGui::SameLine(); ImGui::Checkbox("pause", &pause);
|
ImGui::BeginGroup();
|
||||||
|
ImGui::Text("Graph");
|
||||||
|
ImGui::Checkbox("pause", &pause);
|
||||||
|
ImGui::EndGroup();
|
||||||
ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0,80));
|
ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0,80));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user