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{
46
47 // Special case: Motion path holds the path that the node moves along. The keyframes hold the
48 // progress (t) values. The default value holds a QVariantList with additional parameters:
49 // First, the path itself. Then (optionally) a bool expressing whether or not the node adapts to
50 // the angle of the tangent of the path. Third is an additional rotation to apply on top
53
54 bool isDefaultTransform = true;
55 bool isDefaultOpacity = true;
56 bool isVisible = true;
57 bool isDisplayed = true; // TODO: Map to display enum in QtSvg
58 bool isMaskAlpha = false;
59 bool isMaskInverted = false;
60 QRectF bounds;
62};
63
70
72{
75 int miterLimit = 4;
76 bool cosmetic = false;
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.setDefaultValue(p.dashOffset());
91 style.dashArray = p.dashPattern();
92 style.width.setDefaultValue(p.widthF());
93
94 return style;
95 }
96};
97
105
123
138
140{
141};
142
144{
147};
148
153
155{
157 int frame = 0;
158 int duration = 0;
159};
160
173
184
190
232
242
300
301}
302
303QT_END_NAMESPACE
304
305#endif //QQUICKNODEINFO_P_H
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)