Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2017 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISMASKINGBRUSHCOMPOSITEOPFACTORY_H
#define KISMASKINGBRUSHCOMPOSITEOPFACTORY_H
#include <QtGlobal>
#include <KoChannelInfo.h>
#include "kritaui_export.h"
class KisMaskingBrushCompositeOpBase;
class KRITAUI_EXPORT KisMaskingBrushCompositeOpFactory
{
public:
static KisMaskingBrushCompositeOpBase* create(const QString &id, KoChannelInfo::enumChannelValueType channelType,
int pixelSize, int alphaOffset);
static KisMaskingBrushCompositeOpBase* create(const QString &id, KoChannelInfo::enumChannelValueType channelType,
int pixelSize, int alphaOffset, qreal strength,
bool useSoftTexturing = false);
static KisMaskingBrushCompositeOpBase* createForAlphaSrc(const QString &id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize, int alphaOffset);
static KisMaskingBrushCompositeOpBase* createForAlphaSrc(const QString &id,
KoChannelInfo::enumChannelValueType channelType,
int pixelSize, int alphaOffset, qreal strength,
bool useSoftTexturing = false);
static QStringList supportedCompositeOpIds();
};
#endif // KISMASKINGBRUSHCOMPOSITEOPFACTORY_H