| 4474 | } |
| 4475 | |
| 4476 | void PopStyleColor(int count) { |
| 4477 | ImPlotContext& gp = *GImPlot; |
| 4478 | IM_ASSERT_USER_ERROR(count <= gp.ColorModifiers.Size, "You can't pop more modifiers than have been pushed!"); |
| 4479 | while (count > 0) |
| 4480 | { |
| 4481 | ImGuiColorMod& backup = gp.ColorModifiers.back(); |
| 4482 | gp.Style.Colors[backup.Col] = backup.BackupValue; |
| 4483 | gp.ColorModifiers.pop_back(); |
| 4484 | count--; |
| 4485 | } |
| 4486 | } |
| 4487 | |
| 4488 | void PushStyleVar(ImPlotStyleVar idx, float val) { |
| 4489 | ImPlotContext& gp = *GImPlot; |
no test coverage detected