Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QWAYLANDRESOURCE_H
5#define QWAYLANDRESOURCE_H
6
7#include <QtCore/QObject>
8#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
9#include <QtWaylandCompositor/qtwaylandqmlinclude.h>
10
11struct wl_resource;
12
14
15class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandResource
16{
18 QML_NAMED_ELEMENT(waylandresource)
21public:
23 explicit QWaylandResource(wl_resource *resource);
24
25 wl_resource *resource() const { return m_resource; }
26
27private:
28 wl_resource *m_resource = nullptr;
29};
30
32
34
35#endif /*QWAYLANDRESOURCE_H*/
\inmodule QtWaylandCompositor
wl_resource * resource() const
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_GADGET