MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / TreeNodeGetOpen

Method TreeNodeGetOpen

3rdparty/imgui/src/imgui_widgets.cpp:6784–6789  ·  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

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)
6784bool 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
6791void ImGui::TreeNodeSetOpen(ImGuiID storage_id, bool is_open)
6792{

Callers

nothing calls this directly

Calls 1

GetIntMethod · 0.80

Tested by

no test coverage detected