MCPcopy Create free account
hub / github.com/clementgallet/libTAS / PushPlotClipRect

Function PushPlotClipRect

src/external/imgui/implot.cpp:4851–4858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4849}
4850
4851void 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
4860void PopPlotClipRect() {
4861 SetupLock();

Callers 13

EndPlotFunction · 0.85
DragPointFunction · 0.85
DragLineXFunction · 0.85
DragLineYFunction · 0.85
DragRectFunction · 0.85
BeginItemFunction · 0.85
PlotLineExFunction · 0.85
PlotScatterExFunction · 0.85
PlotStairsExFunction · 0.85
PlotStemsExFunction · 0.85
PlotPieChartFunction · 0.85
PlotImageFunction · 0.85

Calls 1

SetupLockFunction · 0.85

Tested by

no test coverage detected