MCPcopy Create free account
hub / github.com/cinder/Cinder / ShowExampleAppPropertyEditor

Function ShowExampleAppPropertyEditor

src/imgui/imgui_demo.cpp:9483–9499  ·  view source on GitHub ↗

Demonstrate creating a simple property editor.

Source from the content-addressed store, hash-verified

9481
9482// Demonstrate creating a simple property editor.
9483static 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()

Callers 1

ShowDemoWindowMethod · 0.85

Calls 3

ImVec2Function · 0.85
DrawMethod · 0.45

Tested by

no test coverage detected