MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / PushPlotClipRect

Function PushPlotClipRect

Source/3rdParty/implot/implot.cpp:4931–4938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4929}
4930
4931void 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
4940void PopPlotClipRect() {
4941 SetupLock();

Callers 15

Demo_CustomRenderingFunction · 0.85
PlotCandlestickFunction · 0.85
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

Calls 2

SetupLockFunction · 0.85
ExpandMethod · 0.80

Tested by

no test coverage detected