| 367 | } |
| 368 | |
| 369 | void BustColorCache(const char* plot_title_id) { |
| 370 | ImPlotContext& gp = *GImPlot; |
| 371 | if (plot_title_id == nullptr) { |
| 372 | BustItemCache(); |
| 373 | } |
| 374 | else { |
| 375 | ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id); |
| 376 | ImPlotPlot* plot = gp.Plots.GetByKey(id); |
| 377 | if (plot != nullptr) |
| 378 | plot->Items.Reset(); |
| 379 | else { |
| 380 | ImPlotSubplot* subplot = gp.Subplots.GetByKey(id); |
| 381 | if (subplot != nullptr) |
| 382 | subplot->Items.Reset(); |
| 383 | } |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | //----------------------------------------------------------------------------- |
| 388 | // [SECTION] BeginItem / EndItem |
nothing calls this directly
no test coverage detected