| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Scoped object for saving and restoring a QPainter object's state. More...
#include <qgsrendercontext.h>
Public Member Functions | |
| QgsScopedQPainterState (QPainter *painter) | |
| Constructor for QgsScopedQPainterState.   | |
| ~QgsScopedQPainterState () | |
| Restores the painter back to its original state.   | |
Scoped object for saving and restoring a QPainter object's state.
Temporarily saves the QPainter state for the lifetime of the object, before restoring it on destruction.
Definition at line 1522 of file qgsrendercontext.h.
      
  | 
  inline | 
Constructor for QgsScopedQPainterState.
Saves the specified painter state.
Definition at line 1531 of file qgsrendercontext.h.
      
  | 
  inline | 
Restores the painter back to its original state.
Definition at line 1540 of file qgsrendercontext.h.