1// Copyright (C) 2017 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 QT3DANIMATION_QANIMATIONCALLBACK_H
5#define QT3DANIMATION_QANIMATIONCALLBACK_H
6
7#include <Qt3DAnimation/qt3danimation_global.h>
8#include <Qt3DCore/qnode.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DAnimation {
13
14class Q_3DANIMATIONSHARED_EXPORT QAnimationCallback
15{
16public:
17 enum Flag {
18 OnOwningThread = 0x0,
19 OnThreadPool = 0x01
20 };
21 Q_DECLARE_FLAGS(Flags, Flag)
22
23 virtual ~QAnimationCallback();
24
25 virtual void valueChanged(const QVariant &value) = 0;
26};
27
28} // namespace Qt3DAnimation
29
30Q_DECLARE_OPERATORS_FOR_FLAGS(Qt3DAnimation::QAnimationCallback::Flags)
31
32QT_END_NAMESPACE
33
34#endif // QT3DANIMATION_QANIMATIONCALLBACK_H
35

source code of qt3d/src/animation/frontend/qanimationcallback.h