mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-28 04:03:28 +03:00
TreeNode: comments on ImGuiTreeNodeFlags_Leaf. (#4833)
This commit is contained in:
parent
3fecb234c8
commit
c234426f89
2 changed files with 2 additions and 1 deletions
|
|
@ -6744,6 +6744,7 @@ void ImGui::TreeNodeSetOpen(ImGuiID storage_id, bool is_open)
|
|||
|
||||
bool ImGui::TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags)
|
||||
{
|
||||
// Leaf node always open a new tree/id scope. If you never use it, add ImGuiTreeNodeFlags_NoTreePushOnOpen.
|
||||
if (flags & ImGuiTreeNodeFlags_Leaf)
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue