| 3037 | } |
| 3038 | |
| 3039 | static void TreeNodeSetOpen(ExampleTreeNode* node, bool open) |
| 3040 | { |
| 3041 | ImGui::GetStateStorage()->SetBool((ImGuiID)node->UID, open); |
| 3042 | } |
| 3043 | |
| 3044 | // When closing a node: 1) close and unselect all child nodes, 2) select parent if any child was selected. |
| 3045 | // FIXME: This is currently handled by user logic but I'm hoping to eventually provide tree node |