Demonstrate creating a simple property editor.
| 9813 | |
| 9814 | // Demonstrate creating a simple property editor. |
| 9815 | static void ShowExampleAppPropertyEditor(bool* p_open, ImGuiDemoWindowData* demo_data) |
| 9816 | { |
| 9817 | ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); |
| 9818 | if (!ImGui::Begin("Example: Property editor", p_open)) |
| 9819 | { |
| 9820 | ImGui::End(); |
| 9821 | return; |
| 9822 | } |
| 9823 | |
| 9824 | IMGUI_DEMO_MARKER("Examples/Property Editor"); |
| 9825 | static ExampleAppPropertyEditor property_editor; |
| 9826 | if (demo_data->DemoTree == NULL) |
| 9827 | demo_data->DemoTree = ExampleTree_CreateDemoTree(); |
| 9828 | property_editor.Draw(demo_data->DemoTree); |
| 9829 | |
| 9830 | ImGui::End(); |
| 9831 | } |
| 9832 | |
| 9833 | //----------------------------------------------------------------------------- |
| 9834 | // [SECTION] Example App: Long Text / ShowExampleAppLongText() |
no test coverage detected