Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeShadow.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 * SPDX-FileCopyrightText: 2010 Thomas Zander <zander@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPESHADOW_H
9#define KOSHAPESHADOW_H
10
11#include "kritaflake_export.h"
12
13#include <QtGlobal>
14
15class KoShape;
17class QPainter;
18class QPointF;
19class QColor;
20struct KoInsets;
21
22class KRITAFLAKE_EXPORT KoShapeShadow
23{
24public:
27
28 KoShapeShadow(const KoShapeShadow &rhs);
29 KoShapeShadow& operator=(const KoShapeShadow &rhs);
30
37 void paint(KoShape *shape, QPainter &painter);
38
43 void setOffset(const QPointF &offset);
44
46 QPointF offset() const;
47
52 void setColor(const QColor &color);
53
55 QColor color() const;
56
61 void setBlur(qreal blur);
62
64 qreal blur() const;
65
67 void setVisible(bool visible);
68
70 bool isVisible() const;
71
73 void insets(KoInsets &insets) const;
74
79 bool ref();
84 bool deref();
86 int useCount() const;
87
88private:
89 class Private;
90 Private * const d;
91};
92
93#endif // KOSHAPESHADOW_H
qreal blur() const
Returns the shadow blur radius.
QColor color() const
Returns the shadow color including opacity.
Private *const d
QPointF offset() const
Returns the shadow offset.