| 627 | } |
| 628 | |
| 629 | void DemoPlotFlags() { |
| 630 | IMGUI_DEMO_MARKER("Plots/Plot Flags"); |
| 631 | static ImPlot3DFlags flags = ImPlot3DFlags_None; |
| 632 | |
| 633 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoTitle); |
| 634 | ImGui::SameLine(); |
| 635 | ImGui::TextDisabled("(?)"); |
| 636 | if (ImGui::IsItemHovered()) { |
| 637 | ImGui::SetTooltip("Hide plot title"); |
| 638 | } |
| 639 | |
| 640 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoLegend); |
| 641 | ImGui::SameLine(); |
| 642 | ImGui::TextDisabled("(?)"); |
| 643 | if (ImGui::IsItemHovered()) { |
| 644 | ImGui::SetTooltip("Hide plot legend"); |
| 645 | } |
| 646 | |
| 647 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoMouseText); |
| 648 | ImGui::SameLine(); |
| 649 | ImGui::TextDisabled("(?)"); |
| 650 | if (ImGui::IsItemHovered()) { |
| 651 | ImGui::SetTooltip("Hide mouse position in plot coordinates"); |
| 652 | } |
| 653 | |
| 654 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoClip); |
| 655 | ImGui::SameLine(); |
| 656 | ImGui::TextDisabled("(?)"); |
| 657 | if (ImGui::IsItemHovered()) { |
| 658 | ImGui::SetTooltip("Disable 3D box clipping"); |
| 659 | } |
| 660 | |
| 661 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoMenus); |
| 662 | ImGui::SameLine(); |
| 663 | ImGui::TextDisabled("(?)"); |
| 664 | if (ImGui::IsItemHovered()) { |
| 665 | ImGui::SetTooltip("The user will not be able to open context menus"); |
| 666 | } |
| 667 | |
| 668 | CHECKBOX_FLAG(flags, ImPlot3DFlags_Equal); |
| 669 | ImGui::SameLine(); |
| 670 | ImGui::TextDisabled("(?)"); |
| 671 | if (ImGui::IsItemHovered()) { |
| 672 | ImGui::SetTooltip("X, Y, and Z axes will be constrained to have the same units/pixel"); |
| 673 | } |
| 674 | |
| 675 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoRotate); |
| 676 | ImGui::SameLine(); |
| 677 | ImGui::TextDisabled("(?)"); |
| 678 | if (ImGui::IsItemHovered()) { |
| 679 | ImGui::SetTooltip("Lock rotation interaction"); |
| 680 | } |
| 681 | |
| 682 | CHECKBOX_FLAG(flags, ImPlot3DFlags_NoPan); |
| 683 | ImGui::SameLine(); |
| 684 | ImGui::TextDisabled("(?)"); |
| 685 | if (ImGui::IsItemHovered()) { |
| 686 | ImGui::SetTooltip("Lock panning/translation interaction"); |
nothing calls this directly
no test coverage detected