| 3595 | } |
| 3596 | |
| 3597 | void 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 | |
| 3614 | static const ImGuiStyleVarInfo GStyleVarsInfo[] = |
| 3615 | { |
nothing calls this directly
no outgoing calls
no test coverage detected