Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
29
QT_BEGIN_NAMESPACE
30
31
// Holds the parsed value for each animation-*
32
struct
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
42
struct
QSvgOffsetProperty
43
{
44
std
::
optional
<
QPainterPath
>
path
;
45
qreal
distance
{0};
46
qreal
angle
{0};
47
QtSvg
::
OffsetRotateType
rotateType
{
QtSvg
::
OffsetRotateType
::
Auto
};
48
};
49
50
class
QSvgCssProperties
51
{
52
public
:
53
explicit
QSvgCssProperties
(
const
QXmlStreamAttributes &attributes);
54
QList
<
QSvgAnimationProperty
>
animations
()
const
;
55
QSvgOffsetProperty
offset
()
const
;
56
57
private
:
58
void
shortHandtoLonghandForm(QStringView value);
59
60
private
:
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
75
QT_END_NAMESPACE
76
77
#
endif
//QSVGCSSPROPERTIES_P_H
QSvgCssProperties
Definition
qsvgcssproperties_p.h:51
QSvgCssProperties::offset
QSvgOffsetProperty offset() const
Definition
qsvgcssproperties.cpp:183
QSvgCssProperties::QSvgCssProperties
QSvgCssProperties(const QXmlStreamAttributes &attributes)
Definition
qsvgcssproperties.cpp:80
QSvgCssProperties::animations
QList< QSvgAnimationProperty > animations() const
Definition
qsvgcssproperties.cpp:127
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QSvgOffsetProperty
Definition
qsvgcssproperties_p.h:43
QSvgOffsetProperty::path
std::optional< QPainterPath > path
Definition
qsvgcssproperties_p.h:44
QSvgOffsetProperty::distance
qreal distance
Definition
qsvgcssproperties_p.h:45
QSvgOffsetProperty::angle
qreal angle
Definition
qsvgcssproperties_p.h:46
QSvgOffsetProperty::rotateType
QtSvg::OffsetRotateType rotateType
Definition
qsvgcssproperties_p.h:47
qtsvg
src
svg
css
qsvgcssproperties_p.h
Generated on
for Qt by
1.18.0