| 484 | } |
| 485 | |
| 486 | void ResetCtxForNextPlot(ImPlotContext* ctx) { |
| 487 | // end child window if it was made |
| 488 | if (ctx->ChildWindowMade) |
| 489 | ImGui::EndChild(); |
| 490 | ctx->ChildWindowMade = false; |
| 491 | // reset the next plot/item data |
| 492 | ctx->NextPlotData.Reset(); |
| 493 | ctx->NextItemData.Reset(); |
| 494 | // reset labels |
| 495 | ctx->Annotations.Reset(); |
| 496 | ctx->Tags.Reset(); |
| 497 | // reset extents/fit |
| 498 | ctx->OpenContextThisFrame = false; |
| 499 | // reset digital plot items count |
| 500 | ctx->DigitalPlotItemCnt = 0; |
| 501 | ctx->DigitalPlotOffset = 0; |
| 502 | // nullify plot |
| 503 | ctx->CurrentPlot = NULL; |
| 504 | ctx->CurrentItem = NULL; |
| 505 | ctx->PreviousItem = NULL; |
| 506 | } |
| 507 | |
| 508 | void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) { |
| 509 | ctx->CurrentAlignmentH = NULL; |
no test coverage detected