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

Method PopStyleColor

include/imgui/imgui.cpp:3597–3612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3595}
3596
3597void ImGui::PopStyleColor(int count)
3598{
3599 ImGuiContext& g = *GImGui;
3600 if (g.ColorStack.Size < count)
3601 {
3602 IM_ASSERT_USER_ERROR(0, "Calling PopStyleColor() too many times!");
3603 count = g.ColorStack.Size;
3604 }
3605 while (count > 0)
3606 {
3607 ImGuiColorMod& backup = g.ColorStack.back();
3608 g.Style.Colors[backup.Col] = backup.BackupValue;
3609 g.ColorStack.pop_back();
3610 count--;
3611 }
3612}
3613
3614static const ImGuiStyleVarInfo GStyleVarsInfo[] =
3615{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected