The reason those two functions are not yet in public API is because I would like to design a more feature-full and generic API for this. They are otherwise function (cc: #3823, #9251, #7553, #6754, #5423, #2958, #2079, #1947, #1131, #722)
| 6782 | // The reason those two functions are not yet in public API is because I would like to design a more feature-full and generic API for this. |
| 6783 | // They are otherwise function (cc: #3823, #9251, #7553, #6754, #5423, #2958, #2079, #1947, #1131, #722) |
| 6784 | bool ImGui::TreeNodeGetOpen(ImGuiID storage_id) |
| 6785 | { |
| 6786 | ImGuiContext& g = *GImGui; |
| 6787 | ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; |
| 6788 | return storage->GetInt(storage_id, 0) != 0; |
| 6789 | } |
| 6790 | |
| 6791 | void ImGui::TreeNodeSetOpen(ImGuiID storage_id, bool is_open) |
| 6792 | { |