MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ShowExampleAppPropertyEditor

Function ShowExampleAppPropertyEditor

Source/3rdParty/imgui/imgui_demo.cpp:9701–9717  ·  view source on GitHub ↗

Demonstrate creating a simple property editor.

Source from the content-addressed store, hash-verified

9699
9700// Demonstrate creating a simple property editor.
9701static 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()

Callers 1

ShowDemoWindowMethod · 0.85

Calls 6

SetNextWindowSizeFunction · 0.85
ImVec2Function · 0.85
EndFunction · 0.85
BeginFunction · 0.50
DrawMethod · 0.45

Tested by

no test coverage detected