MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / SetToCurrentState

Method SetToCurrentState

plugins/Cardinal/src/DearImGui/imgui.cpp:7644–7657  ·  view source on GitHub ↗

Save current stack sizes for later compare

Source from the content-addressed store, hash-verified

7642
7643// Save current stack sizes for later compare
7644void ImGuiStackSizes::SetToCurrentState()
7645{
7646 ImGuiContext& g = *GImGui;
7647 ImGuiWindow* window = g.CurrentWindow;
7648 SizeOfIDStack = (short)window->IDStack.Size;
7649 SizeOfColorStack = (short)g.ColorStack.Size;
7650 SizeOfStyleVarStack = (short)g.StyleVarStack.Size;
7651 SizeOfFontStack = (short)g.FontStack.Size;
7652 SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size;
7653 SizeOfGroupStack = (short)g.GroupStack.Size;
7654 SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size;
7655 SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size;
7656 SizeOfDisabledStack = (short)g.DisabledStackSize;
7657}
7658
7659// Compare to detect usage errors
7660void ImGuiStackSizes::CompareWithCurrentState()

Callers 1

BeginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected