2017-10-11 07:58:12 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/layout/qgslayouteffect.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLayoutEffect : QGraphicsEffect
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
A QGraphicsEffect subclass used for rendering layout items
|
|
|
|
onto a scene with custom composition modes.
|
2017-10-11 07:58:12 +10:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayouteffect.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsLayoutEffect();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLayoutEffect.
|
2017-10-11 07:58:12 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setCompositionMode( QPainter::CompositionMode mode );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the composition (blending) ``mode`` used for rendering
|
|
|
|
the item.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`compositionMode`
|
2017-10-11 07:58:12 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QPainter::CompositionMode compositionMode() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the composition (blending) mode used for rendering
|
|
|
|
the item.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setCompositionMode`
|
2017-10-11 07:58:12 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual void draw( QPainter *painter );
|
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-10-11 07:58:12 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/layout/qgslayouteffect.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|