Demonstrate creating a simple property editor.
| 9481 | |
| 9482 | // Demonstrate creating a simple property editor. |
| 9483 | static void ShowExampleAppPropertyEditor(bool* p_open, ImGuiDemoWindowData* demo_data) |
| 9484 | { |
| 9485 | ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); |
| 9486 | if (!ImGui::Begin("Example: Property editor", p_open)) |
| 9487 | { |
| 9488 | ImGui::End(); |
| 9489 | return; |
| 9490 | } |
| 9491 | |
| 9492 | IMGUI_DEMO_MARKER("Examples/Property Editor"); |
| 9493 | static ExampleAppPropertyEditor property_editor; |
| 9494 | if (demo_data->DemoTree == NULL) |
| 9495 | demo_data->DemoTree = ExampleTree_CreateDemoTree(); |
| 9496 | property_editor.Draw(demo_data->DemoTree); |
| 9497 | |
| 9498 | ImGui::End(); |
| 9499 | } |
| 9500 | |
| 9501 | //----------------------------------------------------------------------------- |
| 9502 | // [SECTION] Example App: Long Text / ShowExampleAppLongText() |
no test coverage detected