Demonstrate creating a simple property editor.
| 9797 | |
| 9798 | // Demonstrate creating a simple property editor. |
| 9799 | static void ShowExampleAppPropertyEditor(bool* p_open, ImGuiDemoWindowData* demo_data) |
| 9800 | { |
| 9801 | ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); |
| 9802 | if (!ImGui::Begin("Example: Property editor", p_open)) |
| 9803 | { |
| 9804 | ImGui::End(); |
| 9805 | return; |
| 9806 | } |
| 9807 | |
| 9808 | IMGUI_DEMO_MARKER("Examples/Property Editor"); |
| 9809 | static ExampleAppPropertyEditor property_editor; |
| 9810 | if (demo_data->DemoTree == NULL) |
| 9811 | demo_data->DemoTree = ExampleTree_CreateDemoTree(); |
| 9812 | property_editor.Draw(demo_data->DemoTree); |
| 9813 | |
| 9814 | ImGui::End(); |
| 9815 | } |
| 9816 | |
| 9817 | //----------------------------------------------------------------------------- |
| 9818 | // [SECTION] Example App: Long Text / ShowExampleAppLongText() |
no test coverage detected