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++
/* This file is part of the KDE project
*
* SPDX-FileCopyrightText: 2012 Thorsten Zachmann <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KOHATCHBACKGROUND_H
#define KOHATCHBACKGROUND_H
#include "KoColorBackground.h"
/**
* A hatch shape background
*/
class KoHatchBackground : public KoColorBackground
{
public:
enum HatchStyle {
Single,
Double,
Triple
};
KoHatchBackground();
~KoHatchBackground() override;
// reimplemented
void paint(QPainter &painter, const QPainterPath &fillPath) const override;
private:
class Private;
QSharedDataPointer<Private> d;
};
#endif /* KOHATCHBACKGROUND_H */