| 5108 | int ChildIdx; |
| 5109 | int ChildCount; |
| 5110 | static void DisplayNode(const MyTreeNode* node, const MyTreeNode* all_nodes) |
| 5111 | { |
| 5112 | ImGui::TableNextRow(); |
| 5113 | ImGui::TableNextColumn(); |
| 5114 | const bool is_folder = (node->ChildCount > 0); |
| 5115 | if (is_folder) |
| 5116 | { |
| 5117 | bool open = ImGui::TreeNodeEx(node->Name, tree_node_flags); |
| 5118 | ImGui::TableNextColumn(); |
| 5119 | ImGui::TextDisabled("--"); |
| 5120 | ImGui::TableNextColumn(); |
| 5121 | ImGui::TextUnformatted(node->Type); |
| 5122 | if (open) |
| 5123 | { |
| 5124 | for (int child_n = 0; child_n < node->ChildCount; child_n++) |
| 5125 | DisplayNode(&all_nodes[node->ChildIdx + child_n], all_nodes); |
| 5126 | ImGui::TreePop(); |
| 5127 | } |
| 5128 | } |
| 5129 | else |
| 5130 | { |
| 5131 | ImGui::TreeNodeEx(node->Name, tree_node_flags | ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet | ImGuiTreeNodeFlags_NoTreePushOnOpen); |
| 5132 | ImGui::TableNextColumn(); |
| 5133 | ImGui::Text("%d", node->Size); |
| 5134 | ImGui::TableNextColumn(); |
| 5135 | ImGui::TextUnformatted(node->Type); |
| 5136 | } |
| 5137 | } |
| 5138 | }; |
| 5139 | static const MyTreeNode nodes[] = |
| 5140 | { |
nothing calls this directly
no outgoing calls
no test coverage detected