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
4#ifndef QSVGCSSPROPERTIES_P_H
5#define QSVGCSSPROPERTIES_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 <QtCore/qxmlstream.h>
19#include <QtCore/qstringview.h>
20#include <QtCore/qregularexpression.h>
21#include <QtCore/qlist.h>
22#include <QtCore/qstringview.h>
23#include <QtGui/qpainterpath.h>
24#include <QtSvg/private/qtsvgglobal_p.h>
25
26QT_BEGIN_NAMESPACE
27
28// Holds the parsed value for each animation-*
29struct QSvgAnimationProperty
30{
31 QStringView name;
32 int duration = 0;
33 int delay = 0;
34 int iteration = 1;
35};
36
44
46{
47public:
48 QSvgCssProperties(const QXmlStreamAttributes &attributes);
51
52private:
53 void shortHandtoLonghandForm(QStringView value);
54
55private:
56 QList<QStringView> m_names;
57 QList<QStringView> m_durations;
58 QList<QStringView> m_delays;
59 QList<QStringView> m_iterationCounts;
60 QList<QStringView> m_directions;
61 QList<QStringView> m_timingFunctions;
62 QList<QStringView> m_fillModes;
63 QList<QStringView> m_playStates;
64
65 QStringView m_offsetPath;
66 QStringView m_offsetDistance;
67 QStringView m_offsetRotate;
68};
69
70QT_END_NAMESPACE
71
72#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