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
qquick3dparticleshapedatautils_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
6#ifndef QQUICK3DPARTICLESHAPEDATAUTILS_P_H
7#define QQUICK3DPARTICLESHAPEDATAUTILS_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
21#include <QtCore/QCborStreamReader>
22#if QT_CONFIG(cborstreamwriter)
23#include <QtCore/QCborStreamWriter>
24#endif
25#include <QtCore/QVariant>
26#include <QtCore/QMetaType>
27#include <private/qglobal_p.h>
28
30
31class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleShapeDataUtils
32{
33public:
34 static QVariant readValue(QCborStreamReader &reader, QMetaType::Type type);
35 static QString readString(QCborStreamReader &reader);
36 static double readReal(QCborStreamReader &reader);
37 static int readShapeHeader(QCborStreamReader &reader);
38#if QT_CONFIG(cborstreamwriter)
39 static void writeShapeHeader(QCborStreamWriter &writer, int version = 1);
40 static void writeValue(QCborStreamWriter &writer, const QVariant &value);
41#endif
42};
43
44QT_END_NAMESPACE
45
46#endif // QQUICK3DPARTICLESHAPEDATAUTILS_P_H
Combined button and popup list for selecting options.