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
qwaylandresource.h
Go to the documentation of this file.
1// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDRESOURCE_H
6#define QWAYLANDRESOURCE_H
7
8#include <QtCore/QObject>
9#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
10#include <QtWaylandCompositor/qtwaylandqmlinclude.h>
11
12struct wl_resource;
13
15
17{
18 Q_GADGET
19 QML_NAMED_ELEMENT(waylandresource)
20 QML_UNCREATABLE("")
21 QML_ADDED_IN_VERSION(1, 0)
22public:
23 QWaylandResource();
24 explicit QWaylandResource(wl_resource *resource);
25
26 wl_resource *resource() const { return m_resource; }
27
28private:
29 wl_resource *m_resource = nullptr;
30};
31
33
35
36#endif /*QWAYLANDRESOURCE_H*/
\inmodule QtWaylandCompositor
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SelectionMode))