MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setViewport

Method setViewport

3rdparty/qcustomplot/qcustomplot.cpp:14120–14125  ·  view source on GitHub ↗

! Sets the viewport of this QCustomPlot. Usually users of QCustomPlot don't need to change the viewport manually. The viewport is the area in which the plot is drawn. All mechanisms, e.g. margin calculation take the viewport to be the outer border of the plot. The viewport normally is the rect() of the QCustomPlot widget, i.e. a rect with top left (0, 0) and size of the QCustomPlot widg

Source from the content-addressed store, hash-verified

14118 savePdf, etc. by temporarily changing the viewport size.
14119*/
14120void QCustomPlot::setViewport(const QRect &rect)
14121{
14122 mViewport = rect;
14123 if (mPlotLayout)
14124 mPlotLayout->setOuterRect(mViewport);
14125}
14126
14127/*!
14128 Sets the device pixel ratio used by the paint buffers of this QCustomPlot instance.

Callers

nothing calls this directly

Calls 1

setOuterRectMethod · 0.80

Tested by

no test coverage detected