MCPcopy Create free account
hub / github.com/Joe1sn/S-inject / TreeNodeSetOpen

Method TreeNodeSetOpen

extern/ImGui/imgui_demo.cpp:3039–3042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SetBoolMethod · 0.80

Tested by

no test coverage detected