mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
For the time being the class is kept in the server code while it is still being used there.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
class QgsPainting
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgspainting.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
/** Blending modes enum defining the available composition modes that can
|
|
* be used when rendering a layer
|
|
*/
|
|
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,
|
|
};
|
|
|
|
//! Returns a QPainter::CompositionMode corresponding to a BlendMode
|
|
static QPainter::CompositionMode getCompositionMode( QgsPainting::BlendMode blendMode );
|
|
//! Returns a BlendMode corresponding to a QPainter::CompositionMode
|
|
static QgsPainting::BlendMode getBlendModeEnum( QPainter::CompositionMode blendMode );
|
|
|
|
};
|