Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapePainter.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 *
3 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPEPAINTER_H
9#define KOSHAPEPAINTER_H
10
11#include <QList>
12#include <QRectF>
13#include "kritaflake_export.h"
14
15class KoShape;
16class QPainter;
17class QImage;
18
25class KRITAFLAKE_EXPORT KoShapePainter
26{
27public:
28 explicit KoShapePainter();
30
35 void setShapes(const QList<KoShape*> &shapes);
36
42 void paint(QPainter &painter);
43
52 void paint(QPainter &painter, const QRect &painterRect, const QRectF &documentRect);
53
59 void paint(QImage &image);
60
62 QRectF contentRect() const;
63
64private:
65 class Private;
66 Private * const d;
67};
68
69#endif // KOSHAPEPAINTER_H
Private *const d