2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspainting.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-24 22:40:52 +02:00
|
|
|
class QgsPainting
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Misc painting enums and functions.
|
2017-05-18 07:50:23 +02:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2016-07-24 22:40:52 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspainting.h"
|
|
|
|
%End
|
2016-07-24 22:40:52 +02:00
|
|
|
public:
|
|
|
|
|
|
|
|
enum BlendMode
|
|
|
|
{
|
|
|
|
BlendNormal,
|
|
|
|
BlendLighten,
|
|
|
|
BlendScreen,
|
|
|
|
BlendDodge,
|
|
|
|
BlendAddition,
|
|
|
|
BlendDarken,
|
|
|
|
BlendMultiply,
|
|
|
|
BlendBurn,
|
|
|
|
BlendOverlay,
|
|
|
|
BlendSoftLight,
|
|
|
|
BlendHardLight,
|
|
|
|
BlendDifference,
|
|
|
|
BlendSubtract,
|
|
|
|
BlendSource,
|
|
|
|
BlendDestinationOver,
|
|
|
|
BlendClear,
|
|
|
|
BlendDestination,
|
|
|
|
BlendSourceIn,
|
|
|
|
BlendDestinationIn,
|
|
|
|
BlendSourceOut,
|
|
|
|
BlendDestinationOut,
|
|
|
|
BlendSourceAtop,
|
|
|
|
BlendDestinationAtop,
|
|
|
|
BlendXor,
|
|
|
|
};
|
|
|
|
|
|
|
|
static QPainter::CompositionMode getCompositionMode( QgsPainting::BlendMode blendMode );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a QPainter.CompositionMode corresponding to a BlendMode
|
|
|
|
%End
|
2016-07-24 22:40:52 +02:00
|
|
|
static QgsPainting::BlendMode getBlendModeEnum( QPainter::CompositionMode blendMode );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a BlendMode corresponding to a QPainter.CompositionMode
|
|
|
|
%End
|
2016-07-24 22:40:52 +02:00
|
|
|
|
|
|
|
};
|
2017-05-18 07:50:23 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspainting.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|