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

0001 /*
0002  *  SPDX-FileCopyrightText: 2008-2009 Cyrille Berger <cberger@cberger.net>
0003  *  SPDX-FileCopyrightText: 2018 Ivan Santa Maria <ghevan@gmail.com>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #ifndef KIS_RECT_MASK_GENERATOR_P_H
0009 #define KIS_RECT_MASK_GENERATOR_P_H
0010 
0011 struct Q_DECL_HIDDEN KisRectangleMaskGenerator::Private {
0012     Private()
0013         : xcoeff(0),
0014         ycoeff(0),
0015         xfadecoeff(0),
0016         yfadecoeff(0),
0017         transformedFadeX(0),
0018         transformedFadeY(0),
0019         copyOfAntialiasEdges(false)
0020     {
0021     }
0022 
0023     Private(const Private &rhs)
0024         : xcoeff(rhs.xcoeff),
0025         ycoeff(rhs.ycoeff),
0026         xfadecoeff(rhs.xfadecoeff),
0027         yfadecoeff(rhs.yfadecoeff),
0028         transformedFadeX(rhs.transformedFadeX),
0029         transformedFadeY(rhs.transformedFadeY),
0030         copyOfAntialiasEdges(rhs.copyOfAntialiasEdges)
0031     {
0032     }
0033     qreal xcoeff;
0034     qreal ycoeff;
0035     qreal xfadecoeff;
0036     qreal yfadecoeff;
0037     qreal transformedFadeX;
0038     qreal transformedFadeY;
0039 
0040     bool copyOfAntialiasEdges;
0041 
0042     QScopedPointer<KisBrushMaskApplicatorBase> applicator;
0043 };
0044 
0045 
0046 #endif // KIS_RECT_MASK_GENERATOR_P_H