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

0001 /* This file is part of the KDE project
0002  *
0003  * SPDX-FileCopyrightText: 2012 Thorsten Zachmann <zachmann@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  */
0007 
0008 #ifndef KOHATCHBACKGROUND_H
0009 #define KOHATCHBACKGROUND_H
0010 
0011 #include "KoColorBackground.h"
0012 
0013 /**
0014  * A hatch shape background
0015  */
0016 class KoHatchBackground : public KoColorBackground
0017 {
0018 public:
0019     enum HatchStyle {
0020         Single,
0021         Double,
0022         Triple
0023     };
0024 
0025     KoHatchBackground();
0026     ~KoHatchBackground() override;
0027 
0028     // reimplemented
0029     void paint(QPainter &painter, const QPainterPath &fillPath) const override;
0030 
0031 private:
0032     class Private;
0033     QSharedDataPointer<Private> d;
0034 };
0035 
0036 #endif /* KOHATCHBACKGROUND_H */