File indexing completed on 2024-12-22 04:16:04
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H 0008 #define KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H 0009 0010 #include "KisColorSmudgeStrategyWithOverlay.h" 0011 0012 struct KisColorSmudgeStrategyStamp : public KisColorSmudgeStrategyWithOverlay 0013 { 0014 KisColorSmudgeStrategyStamp(KisPainter *painter, 0015 KisImageSP image, 0016 bool smearAlpha, 0017 bool useDullingMode, 0018 bool useOverlayMode); 0019 0020 DabColoringStrategy &coloringStrategy() override; 0021 0022 void updateMask(KisDabCache *dabCache, 0023 const KisPaintInformation& info, 0024 const KisDabShape &shape, 0025 const QPointF &cursorPoint, 0026 QRect *dstDabRect, 0027 qreal lightnessStrength) override; 0028 0029 private: 0030 KisFixedPaintDeviceSP m_origDab; 0031 DabColoringStrategyStamp m_coloringStrategy; 0032 }; 0033 0034 0035 #endif //KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H