QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
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 : 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 "qgis_core.h"
22
#include "
qgis_sip.h
"
23
24
#include <QGraphicsEffect>
25
#include <QPainter>
26
36
class
CORE_EXPORT
QgsLayoutEffect
:
public
QGraphicsEffect
37
{
38
Q_OBJECT
39
40
public
:
41
QgsLayoutEffect
() =
default
;
42
50
Q_DECL_DEPRECATED
void
setCompositionMode
( QPainter::CompositionMode mode )
SIP_DEPRECATED
;
51
59
Q_DECL_DEPRECATED QPainter::CompositionMode
compositionMode
() const
SIP_DEPRECATED
{
return
mCompositionMode; }
60
61
protected
:
62
void
draw( QPainter *painter )
override
;
63
64
private
:
65
QPainter::CompositionMode mCompositionMode = QPainter::CompositionMode_SourceOver;
66
};
67
68
#endif
// QGSLAYOUTEFFECT_H
QgsLayoutEffect::compositionMode
Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode() const
Returns the composition (blending) mode used for rendering the item.
Definition
qgslayouteffect.h:59
QgsLayoutEffect::QgsLayoutEffect
QgsLayoutEffect()=default
QgsLayoutEffect::setCompositionMode
Q_DECL_DEPRECATED void setCompositionMode(QPainter::CompositionMode mode)
Sets the composition (blending) mode used for rendering the item.
Definition
qgslayouteffect.cpp:55
qgis_sip.h
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
Generated on
for QGIS API Documentation by
1.17.0