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
qsvgcsseasing_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
QSVGCSSEASING_P_H
7
#
define
QSVGCSSEASING_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
<
QtSvg
/
private
/
qtsvgglobal_p
.
h
>
21
#
include
<
QtSvg
/
private
/
qsvgeasinginterface_p
.
h
>
22
#
include
<
QtSvg
/
private
/
qsvgcssvalues_p
.
h
>
23
#
include
<
QtCore
/
qeasingcurve
.
h
>
24
#
include
<
QtCore
/
qpoint
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_SVG_EXPORT
QSvgCssEasing
:
public
QSvgEasingInterface
29
{
30
public
:
31
QSvgCssEasing(QSvgCssValues::EasingFunction easingFunction);
32
QSvgCssValues::EasingFunction easingFunction()
const
;
33
34
private
:
35
QSvgCssValues::EasingFunction m_easingFunction;
36
};
37
38
class
Q_SVG_EXPORT
QSvgCssCubicBezierEasing
:
public
QSvgCssEasing
39
{
40
public
:
41
QSvgCssCubicBezierEasing(QSvgCssValues::EasingFunction easingFunction,
const
QPointF &c1,
const
QPointF &c2);
42
virtual
qreal progress(qreal t) override;
43
QPointF c1()
const
;
44
QPointF c2()
const
;
45
46
private
:
47
QEasingCurve m_easingCurve;
48
QPointF m_c1, m_c2;
49
};
50
51
class
Q_SVG_EXPORT
QSvgCssStepsEasing
:
public
QSvgCssEasing
52
{
53
public
:
54
QSvgCssStepsEasing(quint32 stops, QSvgCssValues::StepPosition position);
55
virtual
qreal progress(qreal t) override;
56
quint32 stops()
const
;
57
QSvgCssValues::StepPosition stepPosition();
58
59
private
:
60
quint32 m_stops;
61
QSvgCssValues::StepPosition m_stepPosition;
62
};
63
64
using
QSvgCssEasingPtr = std::unique_ptr<QSvgCssEasing>;
65
66
QT_END_NAMESPACE
67
68
#
endif
// QSVGCSSEASING_P_H
QSvgCssCubicBezierEasing
Definition
qsvgcsseasing_p.h:39
QSvgCssEasing
Definition
qsvgcsseasing_p.h:29
QSvgCssStepsEasing
Definition
qsvgcsseasing_p.h:52
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtsvg
src
svg
css
animation
qsvgcsseasing_p.h
Generated on
for Qt by
1.16.1