MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ShowExampleAppPropertyEditor

Function ShowExampleAppPropertyEditor

imgui_tiny_app/imgui/imgui_demo.cpp:9815–9831  ·  view source on GitHub ↗

Demonstrate creating a simple property editor.

Source from the content-addressed store, hash-verified

9813
9814// Demonstrate creating a simple property editor.
9815static 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()

Callers 1

ShowDemoWindowMethod · 0.85

Calls 3

ImVec2Function · 0.85
DrawMethod · 0.45

Tested by

no test coverage detected