QGIS API Documentation 3.39.0-Master (47f7b3a4989)
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
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
45 QgsLayoutEffect() = default;
46
54 Q_DECL_DEPRECATED void setCompositionMode( QPainter::CompositionMode mode ) SIP_DEPRECATED;
55
63 Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const SIP_DEPRECATED { return mCompositionMode; }
64
65 protected:
66
67 void draw( QPainter *painter ) override;
68
69 private:
70
71 QPainter::CompositionMode mCompositionMode = QPainter::CompositionMode_SourceOver;
72};
73
74#endif // QGSLAYOUTEFFECT_H
75
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
Constructor for QgsLayoutEffect.
#define SIP_DEPRECATED
Definition qgis_sip.h:106