| 4929 | } |
| 4930 | |
| 4931 | void PushPlotClipRect(float expand) { |
| 4932 | ImPlotContext& gp = *GImPlot; |
| 4933 | IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PushPlotClipRect() needs to be called between BeginPlot() and EndPlot()!"); |
| 4934 | SetupLock(); |
| 4935 | ImRect rect = gp.CurrentPlot->PlotRect; |
| 4936 | rect.Expand(expand); |
| 4937 | ImGui::PushClipRect(rect.Min, rect.Max, true); |
| 4938 | } |
| 4939 | |
| 4940 | void PopPlotClipRect() { |
| 4941 | SetupLock(); |
no test coverage detected