Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquicknodeinfo_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKNODEINFO_P_H
5#define QQUICKNODEINFO_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QString>
19#include <QPainter>
20#include <QPainterPath>
21#include <QMatrix4x4>
22#include <QQuickItem>
23#include <QtGui/private/qfixed_p.h>
24#include <QtCore/qmap.h>
25#include <QtQuick/qsgtexture.h>
26
28
30
32
34{
35 QString id;
36 QString nodeId;
37 QString typeName;
38 QString maskId;
39 QString filterId;
45
46 // Special case: Motion path holds the path that the node moves along. The keyframes hold the
47 // progress (t) values. The default value holds a QVariantList with additional parameters:
48 // First, the path itself. Then (optionally) a bool expressing whether or not the node adapts to
49 // the angle of the tangent of the path. Third is an additional rotation to apply on top
52
53 bool isDefaultTransform = true;
54 bool isDefaultOpacity = true;
55 bool isVisible = true;
56 bool isDisplayed = true; // TODO: Map to display enum in QtSvg
57 bool isMaskAlpha = false;
58 bool isMaskInverted = false;
61 QRectF bounds;
62};
63
70
72{
75 int miterLimit = 4;
76 bool cosmetic = false;
81 qreal width = 1.0;
82
83 static StrokeStyle fromPen(const QPen &p)
84 {
85 StrokeStyle style;
86 style.lineCapStyle = p.capStyle();
87 style.lineJoinStyle = p.joinStyle() == Qt::SvgMiterJoin ? Qt::MiterJoin : p.joinStyle(); //TODO support SvgMiterJoin
88 style.miterLimit = qRound(p.miterLimit());
89 style.cosmetic = p.isCosmetic();
90 style.dashOffset = p.dashOffset();
91 style.dashArray = p.dashPattern();
92 style.width = p.widthF();
93
94 return style;
95 }
96};
97
105
122
137
139{
140};
141
143{
146};
147
152
161
172
178
220
228
286
287}
288
289QT_END_NAMESPACE
290
291#endif //QQUICKNODEINFO_P_H
bool visitFilterNodeStart(const QSvgFilterContainer *node) override
void visitPolygonNode(const QSvgPolygon *node) override
bool visitSwitchNodeStart(const QSvgSwitch *node) override
void visitMaskNodeEnd(const QSvgMask *node) override
void visitEllipseNode(const QSvgEllipse *node) override
void visitPathNode(const QSvgPath *node) override
void visitMarkerNodeEnd(const QSvgMarker *node) override
bool visitDefsNodeStart(const QSvgDefs *node) override
void visitDefsNodeEnd(const QSvgDefs *node) override
bool visitMaskNodeStart(const QSvgMask *node) override
void visitDocumentNodeEnd(const QSvgDocument *node) override
~QSvgVisitorImpl() override
void visitStructureNodeEnd(const QSvgStructureNode *node) override
void visitRectNode(const QSvgRect *node) override
void visitFeFilterPrimitiveNodeEnd(const QSvgFeFilterPrimitive *node) override
void visitLineNode(const QSvgLine *node) override
void visitNode(const QSvgNode *node) override
bool visitMarkerNodeStart(const QSvgMarker *node) override
void visitPolylineNode(const QSvgPolyline *node) override
QSvgVisitorImpl(const QString svgFileName, QQuickGenerator *generator, bool assumeTrustedSource)
void visitUseNode(const QSvgUse *node) override
bool visitSymbolNodeStart(const QSvgSymbol *node) override
void visitPatternNodeEnd(const QSvgPattern *) override
bool visitDocumentNodeStart(const QSvgDocument *node) override
void visitImageNode(const QSvgImage *node) override
void visitFilterNodeEnd(const QSvgFilterContainer *node) override
bool visitPatternNodeStart(const QSvgPattern *) override
void visitTextNode(const QSvgText *node) override
void visitSwitchNodeEnd(const QSvgSwitch *node) override
void visitSymbolNodeEnd(const QSvgSymbol *node) override
bool visitFeFilterPrimitiveNodeStart(const QSvgFeFilterPrimitive *node) override
bool visitStructureNodeStart(const QSvgStructureNode *node) override
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(lcAotCompiler, Q_QMLCOMPILER_EXPORT)
static StrokeStyle fromPen(const QPen &p)