QGIS API Documentation  2.99.0-Master (b058df7)
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 
30 class CORE_EXPORT QgsComposerEffect : public QGraphicsEffect
31 {
32  Q_OBJECT
33 
34  public:
35 
39  QgsComposerEffect() = default;
40 
41  void setCompositionMode( QPainter::CompositionMode compositionMode );
42 
43  protected:
45  virtual void draw( QPainter *painter ) override;
46 
47  private:
48 
49  QPainter::CompositionMode mCompositionMode = QPainter::CompositionMode_SourceOver;
50 };
51 
52 #endif // QGSCOMPOSEREFFECT_H
53