File indexing completed on 2024-05-12 15:56:39

0001 /*
0002  *  SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KOCLIPMASKPAINTER_H
0008 #define KOCLIPMASKPAINTER_H
0009 
0010 #include "kritaflake_export.h"
0011 
0012 #include <QScopedPointer>
0013 
0014 class QPainter;
0015 class QRectF;
0016 
0017 
0018 class KRITAFLAKE_EXPORT KoClipMaskPainter
0019 {
0020 public:
0021     KoClipMaskPainter(QPainter *painter, const QRectF &globalClipRect);
0022     ~KoClipMaskPainter();
0023 
0024     QPainter* shapePainter();
0025     QPainter* maskPainter();
0026 
0027     void renderOnGlobalPainter();
0028 
0029 private:
0030     struct Private;
0031     const QScopedPointer<Private> m_d;
0032 };
0033 
0034 #endif // KOCLIPMASKPAINTER_H