| 4849 | } |
| 4850 | |
| 4851 | void PushPlotClipRect(float expand) { |
| 4852 | ImPlotContext& gp = *GImPlot; |
| 4853 | IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PushPlotClipRect() needs to be called between BeginPlot() and EndPlot()!"); |
| 4854 | SetupLock(); |
| 4855 | ImRect rect = gp.CurrentPlot->PlotRect; |
| 4856 | rect.Expand(expand); |
| 4857 | ImGui::PushClipRect(rect.Min, rect.Max, true); |
| 4858 | } |
| 4859 | |
| 4860 | void PopPlotClipRect() { |
| 4861 | SetupLock(); |
no test coverage detected