QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
Scoped object for temporary replacement of a QgsRenderContext destination painter. More...
#include <qgsrendercontext.h>
Public Member Functions | |
QgsScopedRenderContextPainterSwap (QgsRenderContext &context, QPainter *temporaryPainter) | |
Constructor for QgsScopedRenderContextPainterSwap. More... | |
~QgsScopedRenderContextPainterSwap () | |
Returns the destination painter for the context back to the original QPainter object. More... | |
void | reset () |
Resets the destination painter for the context back to the original QPainter object. More... | |
Scoped object for temporary replacement of a QgsRenderContext destination painter.
Temporarily swaps out the destination QPainter object for a QgsRenderContext for the lifetime of the object, before replacing it to the original painter on destruction.
Definition at line 994 of file qgsrendercontext.h.
|
inline |
Constructor for QgsScopedRenderContextPainterSwap.
Swaps the destination painter for context (set QgsRenderContext::setPainter() ) to temporaryPainter.
Definition at line 1004 of file qgsrendercontext.h.
|
inline |
Returns the destination painter for the context back to the original QPainter object.
Definition at line 1026 of file qgsrendercontext.h.
|
inline |
Resets the destination painter for the context back to the original QPainter object.
Definition at line 1014 of file qgsrendercontext.h.