MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / TreeNodeGetOpen

Method TreeNodeGetOpen

Source/3rdParty/imgui/imgui_widgets.cpp:6789–6794  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

6787// 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.
6788// They are otherwise function (cc: #3823, #9251, #7553, #6754, #5423, #2958, #2079, #1947, #1131, #722)
6789bool ImGui::TreeNodeGetOpen(ImGuiID storage_id)
6790{
6791 ImGuiContext& g = *GImGui;
6792 ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage;
6793 return storage->GetInt(storage_id, 0) != 0;
6794}
6795
6796void ImGui::TreeNodeSetOpen(ImGuiID storage_id, bool is_open)
6797{

Callers

nothing calls this directly

Calls 1

GetIntMethod · 0.80

Tested by

no test coverage detected