MCPcopy Create free account
hub / github.com/Sven-vh/ImReflect / array_test

Function array_test

examples/include/imgui_app.cpp:1468–1491  ·  view source on GitHub ↗

======================================== std::Array ========================================

Source from the content-addressed store, hash-verified

1466// std::Array
1467// ========================================
1468static 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

Callers 1

renderMethod · 0.85

Calls 2

HelpMarkerFunction · 0.85
InputFunction · 0.85

Tested by

no test coverage detected