aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/window/plugin.h
blob: a0381f08b6fa4aa75faf51d90cc0351a29357e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtQuick module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:COMM$
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** $QT_END_LICENSE$
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
**
****************************************************************************/

#ifndef PLUGIN_H
#define PLUGIN_H

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists purely as an
// implementation detail.  This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//

#include <QtGui/private/qwindow_p.h>
#include <QtQuick/private/qquickwindow_p.h>
#include <QtQuick/private/qquickwindowattached_p.h>
#include <QtQuick/private/qquickscreen_p.h>
#include <QtQuick/private/qquickwindowmodule_p.h>
#include <QtQml/qqml.h>

QT_BEGIN_NAMESPACE

struct QWindowForeign
{
    Q_GADGET
    QML_FOREIGN(QWindow)
    QML_ANONYMOUS
    QML_ADDED_IN_MINOR_VERSION(1)
};

struct QQuickWindowForeign
{
    Q_GADGET
    QML_FOREIGN(QQuickWindow)
    QML_NAMED_ELEMENT(Window)
    QML_ADDED_IN_MINOR_VERSION(0)
    QML_REMOVED_IN_MINOR_VERSION(1)
};

struct QQuickWindowForeignAttached
{
    Q_GADGET
    QML_FOREIGN(QQuickWindowAttached)
    QML_ANONYMOUS
};

struct QQuickScreenInfoForeign
{
    Q_GADGET
    QML_FOREIGN(QQuickScreenInfo)
    QML_NAMED_ELEMENT(ScreenInfo)
    QML_ADDED_IN_MINOR_VERSION(3)
    QML_UNCREATABLE("ScreenInfo can only be used via the attached property.")
};

struct QQuickScreenForeignAttached
{
    Q_GADGET
    QML_FOREIGN(QQuickScreenAttached)
    QML_ANONYMOUS
};

struct QQuickScreenForeign
{
    Q_GADGET
    QML_FOREIGN(QQuickScreen)
    QML_NAMED_ELEMENT(Screen)
    QML_UNCREATABLE("Screen can only be used via the attached property.")
};

struct QQuickWindowQmlImplForeign
{
    Q_GADGET
    QML_FOREIGN(QQuickWindowQmlImpl)
    QML_NAMED_ELEMENT(Window)
    QML_ADDED_IN_MINOR_VERSION(1)
};

struct QQuickRootItemForeign
{
    Q_GADGET
    QML_FOREIGN(QQuickRootItem)
    QML_ANONYMOUS
};

QT_END_NAMESPACE

#endif // PLUGIN_H