MCPcopy Create free account
hub / github.com/brenocq/implot3d / ShowPlaneContextMenu

Function ShowPlaneContextMenu

implot3d.cpp:1617–1629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615}
1616
1617void ShowPlaneContextMenu(ImPlot3DPlot& plot, int plane_idx) {
1618 for (int i = 0; i < 3; i++) {
1619 if (i == plane_idx)
1620 continue;
1621 ImPlot3DAxis& axis = plot.Axes[i];
1622 ImGui::PushID(i);
1623 if (ImGui::BeginMenu(axis.HasLabel() ? axis.GetLabel() : axis_labels[i])) {
1624 ShowAxisContextMenu(plot, i);
1625 ImGui::EndMenu();
1626 }
1627 ImGui::PopID();
1628 }
1629}
1630
1631void ShowPlotContextMenu(ImPlot3DPlot& plot) {
1632 char buf[16] = {};

Callers 1

EndPlotFunction · 0.85

Calls 3

ShowAxisContextMenuFunction · 0.85
HasLabelMethod · 0.80
GetLabelMethod · 0.80

Tested by

no test coverage detected