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 QQUICKSTACKTRANSITION_P_P_H |
5 | #define QQUICKSTACKTRANSITION_P_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 <QtQuick/private/qtquickglobal_p.h> |
19 | |
20 | QT_REQUIRE_CONFIG(quick_viewtransitions); |
21 | |
22 | #include <QtQuickTemplates2/private/qquickstackview_p.h> |
23 | #include <QtQuick/private/qquickitemviewtransition_p.h> |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | class QQuickStackElement; |
28 | |
29 | struct QQuickStackTransition |
30 | { |
31 | static QQuickStackTransition popExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
32 | static QQuickStackTransition popEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
33 | |
34 | static QQuickStackTransition pushExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
35 | static QQuickStackTransition pushEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
36 | |
37 | static QQuickStackTransition replaceExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
38 | static QQuickStackTransition replaceEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view); |
39 | |
40 | bool target = false; |
41 | QQuickStackView::Status status = QQuickStackView::Inactive; |
42 | QQuickItemViewTransitioner::TransitionType type = QQuickItemViewTransitioner::NoTransition; |
43 | QRectF viewBounds; |
44 | QQuickStackElement *element = nullptr; |
45 | QQuickTransition *transition = nullptr; |
46 | }; |
47 | |
48 | QT_END_NAMESPACE |
49 | |
50 | #endif // QQUICKSTACKTRANSITION_P_P_H |
51 | |