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

Function ExampleTree_CreateNode

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

Source from the content-addressed store, hash-verified

775};
776
777static ExampleTreeNode* ExampleTree_CreateNode(const char* name, int uid, ExampleTreeNode* parent)
778{
779 ExampleTreeNode* node = IM_NEW(ExampleTreeNode);
780 snprintf(node->Name, IM_COUNTOF(node->Name), "%s", name);
781 node->UID = uid;
782 node->Parent = parent;
783 node->IndexInParent = parent ? parent->Childs.Size : 0;
784 if (parent)
785 parent->Childs.push_back(node);
786 return node;
787}
788
789static void ExampleTree_DestroyNode(ExampleTreeNode* node)
790{

Callers 1

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected