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
qsvganimate.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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
5
7
8QSvgAnimateNode::QSvgAnimateNode(QSvgNode *parent)
9 : QSvgNode(parent)
10 , m_end(0)
11 , m_fill(Fill::Freeze)
12 , m_additive(Additive::Replace)
13{
14}
15
16void QSvgAnimateNode::setRunningTime(int startMs, int durMs, int endMs, int by)
17{
18 Q_UNUSED(by)
19 m_start = startMs;
20 m_end = endMs;
21 m_duration = durMs;
22}
23
24void QSvgAnimateNode::drawCommand(QPainter *p, QSvgExtraStates &states)
25{
26 Q_UNUSED(p)
27 Q_UNUSED(states)
28}
29
30bool QSvgAnimateNode::shouldDrawNode(QPainter *p, QSvgExtraStates &states) const
31{
32 Q_UNUSED(p)
33 Q_UNUSED(states)
34 return false;
35}
36
37QT_END_NAMESPACE