Demonstrate creating a simple property editor.
| 9699 | |
| 9700 | // Demonstrate creating a simple property editor. |
| 9701 | static void ShowExampleAppPropertyEditor(bool* p_open, ImGuiDemoWindowData* demo_data) |
| 9702 | { |
| 9703 | ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); |
| 9704 | if (!ImGui::Begin("Example: Property editor", p_open)) |
| 9705 | { |
| 9706 | ImGui::End(); |
| 9707 | return; |
| 9708 | } |
| 9709 | |
| 9710 | IMGUI_DEMO_MARKER("Examples/Property Editor"); |
| 9711 | static ExampleAppPropertyEditor property_editor; |
| 9712 | if (demo_data->DemoTree == NULL) |
| 9713 | demo_data->DemoTree = ExampleTree_CreateDemoTree(); |
| 9714 | property_editor.Draw(demo_data->DemoTree); |
| 9715 | |
| 9716 | ImGui::End(); |
| 9717 | } |
| 9718 | |
| 9719 | //----------------------------------------------------------------------------- |
| 9720 | // [SECTION] Example App: Long Text / ShowExampleAppLongText() |
no test coverage detected