QGIS API Documentation
3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
src
core
layout
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 :
[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 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
36
class
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
QgsLayoutEffect
A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes...
Definition
qgslayouteffect.h:37
QgsLayoutEffect::compositionMode
Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const
Returns the composition (blending) mode used for rendering the item.
Definition
qgslayouteffect.h:60
QgsLayoutEffect::QgsLayoutEffect
QgsLayoutEffect()=default
qgis_sip.h
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:106
Generated on Sun Nov 10 2024 14:15:43 for QGIS API Documentation by
1.9.8