| 3627 | } |
| 3628 | |
| 3629 | void 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 | |
| 3646 | static const ImGuiStyleVarInfo GStyleVarsInfo[] = |
| 3647 | { |
nothing calls this directly
no outgoing calls
no test coverage detected