QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
A class to manage painter saving and restoring required for drawing on a different painter (mask painter for example) More...
#include <qgspainterswapper.h>
Public Member Functions | |
QgsPainterSwapper (QgsRenderContext &renderContext, QPainter *newPainter) | |
QgsPainterSwapper constructor. | |
~QgsPainterSwapper () | |
A class to manage painter saving and restoring required for drawing on a different painter (mask painter for example)
Definition at line 34 of file qgspainterswapper.h.
QgsPainterSwapper::QgsPainterSwapper | ( | QgsRenderContext & | renderContext, |
QPainter * | newPainter | ||
) |
QgsPainterSwapper constructor.
The constructor replaces the current painter assigned to renderContext, swapping it for the specified newPainter. Upon QgsPainterSwapper destruction, the painter previously assigned to the render context will automatically be restored.
Definition at line 21 of file qgspainterswapper.cpp.
QgsPainterSwapper::~QgsPainterSwapper | ( | ) |
Definition at line 28 of file qgspainterswapper.cpp.