QGIS API Documentation  2.99.0-Master (ba079d8)
qgscomposereffect.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscomposereffect.h
3  -------------------
4  begin : March 2013
5  copyright : (C) 2013 by Nyall Dawson
6  email : [email protected]
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSCOMPOSEREFFECT_H
19 #define QGSCOMPOSEREFFECT_H
20 
21 #include <QGraphicsEffect>
22 #include <QPainter>
23 
24 #include "qgis_core.h"
25 
29 class CORE_EXPORT QgsComposerEffect : public QGraphicsEffect
30 {
31  Q_OBJECT
32 
33  public:
35 
36  void setCompositionMode( QPainter::CompositionMode compositionMode );
37 
38  protected:
40  virtual void draw( QPainter *painter ) override;
41 
42  private:
43 
44  QPainter::CompositionMode mCompositionMode;
45 };
46 
47 #endif // QGSCOMPOSEREFFECT_H
48