MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ShowExampleAppPropertyEditor

Function ShowExampleAppPropertyEditor

3rdparty/imgui/src/imgui_demo.cpp:9799–9815  ·  view source on GitHub ↗

Demonstrate creating a simple property editor.

Source from the content-addressed store, hash-verified

9797
9798// Demonstrate creating a simple property editor.
9799static void ShowExampleAppPropertyEditor(bool* p_open, ImGuiDemoWindowData* demo_data)
9800{
9801 ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver);
9802 if (!ImGui::Begin("Example: Property editor", p_open))
9803 {
9804 ImGui::End();
9805 return;
9806 }
9807
9808 IMGUI_DEMO_MARKER("Examples/Property Editor");
9809 static ExampleAppPropertyEditor property_editor;
9810 if (demo_data->DemoTree == NULL)
9811 demo_data->DemoTree = ExampleTree_CreateDemoTree();
9812 property_editor.Draw(demo_data->DemoTree);
9813
9814 ImGui::End();
9815}
9816
9817//-----------------------------------------------------------------------------
9818// [SECTION] Example App: Long Text / ShowExampleAppLongText()

Callers 1

ShowDemoWindowMethod · 0.85

Calls 5

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

Tested by

no test coverage detected