Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgGraphicContext.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2003, 2005 Rob Buis <buis@kde.org>
3 * SPDX-FileCopyrightText: 2007, 2009 Jan Hambrecht <jaham@gmx.net>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef SVGGRAPHICCONTEXT_H
9#define SVGGRAPHICCONTEXT_H
10
11#include "kritaflake_export.h"
12#include <KoShapeStroke.h>
13#include <QTransform>
15
16class KRITAFLAKE_EXPORT SvgGraphicsContext
17{
18public:
19 // Fill/stroke styles
20 enum StyleType {
24 Inherit
25 };
26
29
30 void workaroundClearInheritedFillProperties();
31
32 StyleType fillType {Solid};
33 Qt::FillRule fillRule {Qt::WindingFill};
34 QColor fillColor {QColor(Qt::black)};
35 QString fillId;
36
37 StyleType strokeType {None};
38 QString strokeId;
40
41 QString filterId;
42 QString clipPathId;
43 QString clipMaskId;
44 Qt::FillRule clipRule {Qt::WindingFill};
45 qreal opacity {1.0};
46
47 QTransform matrix;
48 QColor currentColor {Qt::black};
49 QString xmlBaseDir;
50 bool preserveWhitespace {false};
51
53 bool forcePercentage {false};
54 QTransform viewboxTransform;
55
56 bool display {true};
57 bool visible {true};
58 bool isResolutionFrame {false};
59 qreal pixelsPerInch {72.0};
60
62 QString markerMidId;
63 QString markerEndId;
64
65 bool autoFillMarkers {false};
66
70
71 QString paintOrder;
72private:
74};
75
76#endif // SVGGRAPHICCONTEXT_H
QString clipPathId
the current clip path id
QString xmlBaseDir
the current base directory (used for loading external content)
QRectF currentBoundingBox
the current bound box used for bounding box units
SvgGraphicsContext & operator=(const SvgGraphicsContext &gc)=default
used by copy constructor, shouldn't be public
QString fillId
the current fill id (used for gradient/pattern fills)
KoSvgTextProperties textProperties
Stores textProperties.
QTransform viewboxTransform
view box transformation
QString shapeSubtractValue
String of value shape-subtract, will be parsed later.
QString strokeId
the current stroke id (used for gradient strokes)
QTransform matrix
the current transformation matrix
QString filterId
the current filter id
QString paintOrder
String list indicating paint order;.
QString shapeInsideValue
String of value shape-inside, will be parsed later.
KoShapeStrokeSP stroke
the current stroke
QString clipMaskId
the current clip mask id
@ Complex
gradient or pattern style