MCPcopy Create free account
hub / github.com/RenderKit/embree / SetToCurrentState

Method SetToCurrentState

tutorials/common/imgui/imgui.cpp:8887–8900  ·  view source on GitHub ↗

Save current stack sizes for later compare

Source from the content-addressed store, hash-verified

8885
8886// Save current stack sizes for later compare
8887void ImGuiStackSizes::SetToCurrentState()
8888{
8889 ImGuiContext& g = *GImGui;
8890 ImGuiWindow* window = g.CurrentWindow;
8891 SizeOfIDStack = (short)window->IDStack.Size;
8892 SizeOfColorStack = (short)g.ColorStack.Size;
8893 SizeOfStyleVarStack = (short)g.StyleVarStack.Size;
8894 SizeOfFontStack = (short)g.FontStack.Size;
8895 SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size;
8896 SizeOfGroupStack = (short)g.GroupStack.Size;
8897 SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size;
8898 SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size;
8899 SizeOfDisabledStack = (short)g.DisabledStackSize;
8900}
8901
8902// Compare to detect usage errors
8903void ImGuiStackSizes::CompareWithCurrentState()

Callers 1

BeginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected