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 <QScopedPointer>
14
#include "kritaflake_export.h"
15
16
class
KoShape
;
17
class
QPainter;
18
class
QImage;
19
class
KoShapeManager
;
20
27
class
KRITAFLAKE_EXPORT
KoShapePainter
28
{
29
public
:
30
explicit
KoShapePainter
();
31
~KoShapePainter
();
32
37
void
setShapes(
const
QList<KoShape*>
&shapes);
38
44
void
paint(QPainter &painter);
45
54
void
paint(QPainter &painter,
const
QRect &painterRect,
const
QRectF &documentRect);
55
61
void
paint(QImage &image);
62
64
QRectF contentRect()
const
;
65
71
KoShapeManager
*internalShapeManager()
const
;
72
73
void
setUpdateFunction(std::function<
void
(
const
QRectF&)> function);
74
75
private
:
76
class
Private
;
77
QScopedPointer<Private>
d
;
78
};
79
80
#endif
// KOSHAPEPAINTER_H
KoShapeManager
Definition
KoShapeManager.h:42
KoShapePainter
Definition
KoShapePainter.cpp:111
KoShapePainter::d
QScopedPointer< Private > d
Definition
KoShapePainter.h:77
KoShape
Definition
KoShape.h:89
QList
Definition
KisQStringListFwd.h:16
Private
Definition
SvgTransformParser.cpp:20
libs
flake
svg
KoShapePainter.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1