======================================== std::Array ========================================
| 1466 | // std::Array |
| 1467 | // ======================================== |
| 1468 | static void array_test() { |
| 1469 | ImGui::SeparatorText("std::array Test"); |
| 1470 | ImGui::PushID("array_test"); |
| 1471 | ImGui::Indent(); |
| 1472 | static std::array<int, 5> my_array = { 1, 2, 3, 4, 5 }; |
| 1473 | ImGui::Text("Default"); |
| 1474 | HelpMarker("Default settings, no extra settings given"); |
| 1475 | { |
| 1476 | ImGui::PushID("default"); |
| 1477 | ImReflect::Input("my_array", my_array); |
| 1478 | ImGui::PopID(); |
| 1479 | } |
| 1480 | ImGui::NewLine(); |
| 1481 | ImGui::Text("Default const"); |
| 1482 | HelpMarker("Default settings, no extra settings given"); |
| 1483 | { |
| 1484 | ImGui::PushID("default const"); |
| 1485 | static const std::array<int, 5> my_array_const = { 1, 2, 3, 4, 5 }; |
| 1486 | ImReflect::Input("my_array_const", my_array_const); |
| 1487 | ImGui::PopID(); |
| 1488 | } |
| 1489 | ImGui::Unindent(); |
| 1490 | ImGui::PopID(); |
| 1491 | } |
| 1492 | |
| 1493 | // ======================================== |
| 1494 | // std::list |
no test coverage detected