QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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
6 email : nyall.dawson@gmail.com
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
42 QgsLayoutEffect() = default;
43
51 Q_DECL_DEPRECATED void setCompositionMode( QPainter::CompositionMode mode ) SIP_DEPRECATED;
52
60 Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const SIP_DEPRECATED { return mCompositionMode; }
61
62 protected:
63
64 void draw( QPainter *painter ) override;
65
66 private:
67
68 QPainter::CompositionMode mCompositionMode = QPainter::CompositionMode_SourceOver;
69};
70
71#endif // QGSLAYOUTEFFECT_H
72
A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes...
Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const
Returns the composition (blending) mode used for rendering the item.
QgsLayoutEffect()=default
#define SIP_DEPRECATED
Definition qgis_sip.h:106