QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
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. More... | |
~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.