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

Function ExampleTree_CreateNode

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

snprintfFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected