| 4251 | } |
| 4252 | |
| 4253 | void PopStyleColor(int count) { |
| 4254 | ImPlotContext& gp = *GImPlot; |
| 4255 | IM_ASSERT_USER_ERROR(count <= gp.ColorModifiers.Size, "You can't pop more modifiers than have been pushed!"); |
| 4256 | while (count > 0) |
| 4257 | { |
| 4258 | ImGuiColorMod& backup = gp.ColorModifiers.back(); |
| 4259 | gp.Style.Colors[backup.Col] = backup.BackupValue; |
| 4260 | gp.ColorModifiers.pop_back(); |
| 4261 | count--; |
| 4262 | } |
| 4263 | } |
| 4264 | |
| 4265 | void PushStyleVar(ImPlotStyleVar idx, float val) { |
| 4266 | ImPlotContext& gp = *GImPlot; |
no test coverage detected