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
qsvgcssproperties_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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// Qt-Security score:significant reason:default
4
5
6#ifndef QSVGCSSPROPERTIES_P_H
7#define QSVGCSSPROPERTIES_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 <QtCore/qxmlstream.h>
21#include <QtCore/qstringview.h>
22#include <QtCore/qregularexpression.h>
23#include <QtCore/qlist.h>
24#include <QtCore/qstringview.h>
25#include <QtGui/qpainterpath.h>
26#include <QtSvg/private/qtsvgglobal_p.h>
27#include <QtSvg/private/qsvgcssvalues_p.h>
28
29QT_BEGIN_NAMESPACE
30
31// Holds the parsed value for each animation-*
32struct QSvgAnimationProperty
33{
34 QStringView name;
35 int duration = 0;
36 int delay = 0;
37 int iteration = 1;
38 QSvgCssValues::EasingFunction easingFunction = QSvgCssValues::EasingFunction::Ease;
39 QSvgCssValues::EasingValues easingValues;
40};
41
49
51{
52public:
53 QSvgCssProperties(const QXmlStreamAttributes &attributes);
56
57private:
58 void shortHandtoLonghandForm(QStringView value);
59
60private:
61 QList<QStringView> m_names;
62 QList<QStringView> m_durations;
63 QList<QStringView> m_delays;
64 QList<QStringView> m_iterationCounts;
65 QList<QStringView> m_directions;
66 QList<QStringView> m_timingFunctions;
67 QList<QStringView> m_fillModes;
68 QList<QStringView> m_playStates;
69
70 QStringView m_offsetPath;
71 QStringView m_offsetDistance;
72 QStringView m_offsetRotate;
73};
74
75QT_END_NAMESPACE
76
77#endif //QSVGCSSPROPERTIES_P_H
QSvgOffsetProperty offset() const
QSvgCssProperties(const QXmlStreamAttributes &attributes)
QList< QSvgAnimationProperty > animations() const
Combined button and popup list for selecting options.
std::optional< QPainterPath > path
QtSvg::OffsetRotateType rotateType