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
qwaylandquickextension.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
* \headerfile <QWaylandQuickExtension>
6
* \title Qt Wayland Compositor Qt Quick Extension Macro Declarations
7
* \inmodule QtWaylandCompositor
8
* \ingroup funclists
9
*
10
* \brief The <QWaylandQuickExtension> header file includes macros for creating Qt Quick types
11
* that correspond to subclasses of QWaylandCompositorExtension and QWaylandObject.
12
*
13
* If you are creating extensions to Qt Wayland Compositor, the macros in the QWaylandQuickExtension
14
* header may be a useful alternative to manually implementing the required parts for each class.
15
*
16
* \sa {Custom Shell}
17
*/
18
19
/*!
20
* \macro Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(className)
21
* \relates <QWaylandQuickExtension>
22
*
23
* This macro can be used to define a Qt Quick class based on a Wayland extension. It defines
24
* a new class which inherits from \a className and which suffixes the name with "QuickExtension".
25
*
26
* The class should be a subclass of QWaylandCompositorExtension, and
27
* \l{QWaylandCompositorExtension::initialize()} will be called automatically. The type must be
28
* manually registered in Qt Quick using \l{qmlRegisterType()}.
29
*
30
* \sa Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT
31
*/
32
33
/*!
34
* \macro Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS(className)
35
* \relates <QWaylandQuickExtension>
36
*
37
* This macro can be used to define a Qt Quick class intended to contain Wayland extensions. It
38
*
39
* It defines a new class which inherits from \a className and which suffixes the name with
40
* "QuickExtensionContainer". The class given by \a className should inherit from QWaylandObject,
41
* and the new class will have an \c extensions property which manages the extensions by calling
42
* \l{QWaylandObject::addExtension()}{addExtension()} and
43
* \l{QWaylandObject::removeExtension()}{removeExtension()} in the base class.
44
*
45
* The type must be manually registered in Qt Quick using \l{qmlRegisterType()}.
46
*/
47
48
/*!
49
* \macro Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS(className, QmlType)
50
* \relates <QWaylandQuickExtension>
51
* \deprecated [6.8] Use Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT instead.
52
*
53
* This macro can be used to define a Qt Quick class based on a Wayland extension. It defines
54
* a new class which inherits from \a className and which suffixes the name with "QuickExtension".
55
*
56
* The macro works the same as \l{Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS}, but will also
57
* automatically register the new type as \a QmlType in the current QML module with \l
58
* QML_ADDED_IN_VERSION set to 1.0.
59
*/
60
61
/*!
62
\macro Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(className, QmlType)
63
\relates <QWaylandQuickExtension>
64
\since 6.8
65
66
This macro can be used to define a Qt Quick class based on a Wayland extension. It defines
67
a new class which inherits from \a className and which suffixes the name with "QuickExtension".
68
69
The macro works the same as \l{Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS}, but will also
70
automatically register the new type as \a QmlType in the current QML module.
71
*/
72
73
/*!
74
\macro Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(className, QmlType, versionMajor, versionMinor)
75
\relates <QWaylandQuickExtension>
76
\internal
77
\since 6.8
78
79
This macro can be used to define a Qt Quick class based on a Wayland extension. It defines
80
a new class which inherits from \a className and which suffixes the name with "QuickExtension".
81
82
The macro works the same as \l{Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS}, but will also
83
automatically register the new type as \a QmlType in the current QML module with
84
\l QML_ADDED_IN_VERSION set to the version passed via \a versionMajor and \a versionMinor.
85
*/
qtwayland
src
compositor
global
qwaylandquickextension.qdoc
Generated on
for Qt by
1.14.0