QGIS API Documentation  2.17.0-Master (0497e4a)
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 
27 class CORE_EXPORT QgsComposerEffect : public QGraphicsEffect
28 {
29  Q_OBJECT
30 
31  public:
34 
35  void setCompositionMode( QPainter::CompositionMode compositionMode );
36 
37  protected:
39  virtual void draw( QPainter *painter ) override;
40 
41  private:
42 
43  QPainter::CompositionMode mCompositionMode;
44 };
45 
46 #endif // QGSCOMPOSEREFFECT_H
47 
virtual void draw(QPainter *painter)=0