QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgslayouteffect.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayouteffect.h
3 -------------------
4 begin : October 2017
5 copyright : (C) 2017 by Nyall Dawson
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 QGSLAYOUTEFFECT_H
19#define QGSLAYOUTEFFECT_H
20
21#include <QGraphicsEffect>
22#include <QPainter>
23
24#include "qgis_core.h"
25#include "qgis_sip.h"
26
36class CORE_EXPORT QgsLayoutEffect : public QGraphicsEffect
37{
38 Q_OBJECT
39
40 public:
41
47 Q_DECL_DEPRECATED QgsLayoutEffect() SIP_DEPRECATED = default;
48
56 Q_DECL_DEPRECATED void setCompositionMode( QPainter::CompositionMode mode ) SIP_DEPRECATED;
57
65 Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const SIP_DEPRECATED { return mCompositionMode; }
66
67 protected:
68
69 void draw( QPainter *painter ) override;
70
71 private:
72
73 QPainter::CompositionMode mCompositionMode = QPainter::CompositionMode_SourceOver;
74};
75
76#endif // QGSLAYOUTEFFECT_H
77
A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes...
Q_DECL_DEPRECATED QgsLayoutEffect()=default
Constructor for QgsLayoutEffect.
#define SIP_DEPRECATED
Definition: qgis_sip.h:106