MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / PopStyleColor

Method PopStyleColor

include/imgui/imgui.cpp:3629–3644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3627}
3628
3629void ImGui::PopStyleColor(int count)
3630{
3631 ImGuiContext& g = *GImGui;
3632 if (g.ColorStack.Size < count)
3633 {
3634 IM_ASSERT_USER_ERROR(0, "Calling PopStyleColor() too many times!");
3635 count = g.ColorStack.Size;
3636 }
3637 while (count > 0)
3638 {
3639 ImGuiColorMod& backup = g.ColorStack.back();
3640 g.Style.Colors[backup.Col] = backup.BackupValue;
3641 g.ColorStack.pop_back();
3642 count--;
3643 }
3644}
3645
3646static const ImGuiStyleVarInfo GStyleVarsInfo[] =
3647{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected