MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ShowExampleAppPropertyEditor

Function ShowExampleAppPropertyEditor

external/imgui/imgui_demo.cpp:9816–9832  ·  view source on GitHub ↗

Demonstrate creating a simple property editor.

Source from the content-addressed store, hash-verified

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