Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeBackground.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2008 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPEBACKGROUND_H
8#define KOSHAPEBACKGROUND_H
9
10#include "kritaflake_export.h"
11
12#include <QtGlobal>
13
14class QSizeF;
15class QPainter;
16class QPainterPath;
18
24class KRITAFLAKE_EXPORT KoShapeBackground
25{
26public:
28 virtual ~KoShapeBackground();
29
31 virtual void paint(QPainter &painter, const QPainterPath &fillPath) const = 0;
32
34 virtual bool hasTransparency() const;
35
36 virtual bool compareTo(const KoShapeBackground *other) const = 0;
37
38 virtual explicit operator bool() const { return true; }
39
40};
41
42#endif // KOSHAPEBACKGROUND_H
virtual bool compareTo(const KoShapeBackground *other) const =0
virtual void paint(QPainter &painter, const QPainterPath &fillPath) const =0
Paints the background using the given fill path.