Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShape_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2009 Thomas Zander <zander@kde.org>
3 * SPDX-FileCopyrightText: 2010 Boudewijn Rempt <boud@valdyas.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef KOSHAPEPRIVATE_H
8#define KOSHAPEPRIVATE_H
9
10#include "KoShape.h"
11
12#include <QPoint>
13#include <QPaintDevice>
14#include <QTransform>
15#include <QScopedPointer>
16#include <QSharedData>
17
18#include <KoClipMask.h>
19
20class KoShapeManager;
21
22
23class KoShape::SharedData : public QSharedData
24{
25public:
26 explicit SharedData();
27 virtual ~SharedData();
28
29 explicit SharedData(const SharedData &rhs);
30
31
32public:
33 // Members
34
35 mutable QSizeF size; // size in pt
36 QString shapeId;
37 QString name;
38
39 QTransform localMatrix;
40
41 QScopedPointer<KoShapeUserData> userData;
44 bool inheritBackground = false;
45 bool inheritStroke = false;
47 // XXX: change this to instance instead of pointer
48 QScopedPointer<KoClipPath> clipPath;
49 QScopedPointer<KoClipMask> clipMask;
50 QMap<QString, QString> additionalAttributes;
51 QMap<QByteArray, QString> additionalStyleAttributes;
54 QString hyperLink; //hyperlink for this shape
55
56 int zIndex : 16; // keep maxZIndex in sync!
57 int runThrough : 16;
58 int visible : 1;
59 int printable : 1;
61 int keepAspect : 1;
62 int selectable : 1;
64
72
74 bool inheritPaintOrder = true;
75};
76
86
87#endif
This class manages a stack of filter effects.
QSet< KoShapeManager * > shapeManagers
Definition KoShape_p.h:81
QList< KoShape::ShapeChangeListener * > listeners
Definition KoShape_p.h:84
KoShapeContainer * parent
Definition KoShape_p.h:80
QSet< KoShape * > toolDelegates
Definition KoShape_p.h:82
QList< KoShape * > dependees
list of shape dependent on this shape
Definition KoShape_p.h:83
KoShapeShadow * shadow
the current shape shadow
Definition KoShape_p.h:46
KoFilterEffectStack * filterEffectStack
stack of filter effects applied to the shape
Definition KoShape_p.h:52
qreal textRunAroundDistanceTop
Definition KoShape_p.h:67
qreal transparency
the shapes transparency
Definition KoShape_p.h:53
qreal textRunAroundThreshold
Definition KoShape_p.h:70
QMap< QByteArray, QString > additionalStyleAttributes
Definition KoShape_p.h:51
QString name
the shapes names
Definition KoShape_p.h:37
KoShape::TextRunAroundContour textRunAroundContour
Definition KoShape_p.h:71
virtual ~SharedData()
Definition KoShape.cpp:124
QVector< PaintOrder > paintOrder
Definition KoShape_p.h:73
qreal textRunAroundDistanceBottom
Definition KoShape_p.h:69
QScopedPointer< KoClipMask > clipMask
the current clip mask
Definition KoShape_p.h:49
KoShape::TextRunAroundSide textRunAroundSide
Definition KoShape_p.h:65
QScopedPointer< KoShapeUserData > userData
Definition KoShape_p.h:41
QMap< QString, QString > additionalAttributes
Definition KoShape_p.h:50
qreal textRunAroundDistanceRight
Definition KoShape_p.h:68
QSharedPointer< KoShapeBackground > fill
Stands for the background color / fill etc.
Definition KoShape_p.h:43
qreal textRunAroundDistanceLeft
Definition KoShape_p.h:66
QTransform localMatrix
the shapes local transformation matrix
Definition KoShape_p.h:39
QScopedPointer< KoClipPath > clipPath
the current clip path
Definition KoShape_p.h:48
QSharedPointer< KoShapeStrokeModel > stroke
points to a stroke, or 0 if there is no stroke
Definition KoShape_p.h:42
TextRunAroundContour
The behavior text should do when intersecting this shape.
Definition KoShape.h:131
TextRunAroundSide
The behavior text should do when intersecting this shape.
Definition KoShape.h:120
@ Stroke
Definition KoShape.h:147
@ Markers
Definition KoShape.h:148