|
|
|
@ -1289,6 +1289,7 @@ static void ShowDemoWindowWidgets() |
|
|
|
|
} |
|
|
|
|
ImGui::EndListBox(); |
|
|
|
|
} |
|
|
|
|
ImGui::SameLine(); HelpMarker("Here we are sharing selection state between both boxes."); |
|
|
|
|
|
|
|
|
|
// Custom size: use all width, 5 items tall
|
|
|
|
|
ImGui::Text("Full-width:"); |
|
|
|
@ -1823,6 +1824,7 @@ static void ShowDemoWindowWidgets() |
|
|
|
|
static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; |
|
|
|
|
ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); |
|
|
|
|
ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); |
|
|
|
|
//ImGui::SameLine(); HelpMarker("Consider using ImPlot instead!");
|
|
|
|
|
|
|
|
|
|
// Fill an array of contiguous float values to plot
|
|
|
|
|
// Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float
|
|
|
|
|