QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 <QtGui>
22 #include <QGraphicsEffect>
23 
24 class CORE_EXPORT QgsComposerEffect : public QGraphicsEffect
25 {
26  Q_OBJECT
27 
28  public:
31 
32  void setCompositionMode( const QPainter::CompositionMode compositionMode );
33 
34  protected:
36  virtual void draw( QPainter *painter );
37 
38  private:
39 
40  QPainter::CompositionMode mCompositionMode;
41 };
42 
43 #endif // QGSCOMPOSEREFFECT_H
44