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
qwaylandivisurface.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDIVISURFACE_H
6#define QWAYLANDIVISURFACE_H
7
8#include <QtWaylandCompositor/QWaylandShellSurface>
9#if QT_CONFIG(wayland_compositor_quick)
10#include <QtWaylandCompositor/qwaylandquickchildren.h>
11#endif
12
13struct wl_resource;
14
15QT_BEGIN_NAMESPACE
16
17class QWaylandIviSurfacePrivate;
18class QWaylandSurface;
19class QWaylandIviApplication;
21class QWaylandResource;
22
23class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandIviSurface : public QWaylandShellSurfaceTemplate<QWaylandIviSurface>
24{
25 Q_OBJECT
26 Q_DECLARE_PRIVATE(QWaylandIviSurface)
27#if QT_CONFIG(wayland_compositor_quick)
28 Q_WAYLAND_COMPOSITOR_DECLARE_QUICK_CHILDREN(QWaylandIviSurface)
29#endif
30 Q_PROPERTY(QWaylandSurface *surface READ surface NOTIFY surfaceChanged)
31 Q_PROPERTY(uint iviId READ iviId NOTIFY iviIdChanged)
32 Q_MOC_INCLUDE("qwaylandsurface.h")
33
34public:
35 QWaylandIviSurface();
36 QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource);
37
38 Q_INVOKABLE void initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface,
39 uint iviId, const QWaylandResource &resource);
40
41 QWaylandSurface *surface() const;
42 uint iviId() const;
43
44 static const struct wl_interface *interface();
45 static QByteArray interfaceName();
46 static QWaylandSurfaceRole *role();
47 static QWaylandIviSurface *fromResource(::wl_resource *resource);
48
49 Q_INVOKABLE void sendConfigure(const QSize &size);
50
51#if QT_CONFIG(wayland_compositor_quick)
52 QWaylandQuickShellIntegration *createIntegration(QWaylandQuickShellSurfaceItem *item) override;
53#endif
54
55Q_SIGNALS:
56 void surfaceChanged();
57 void iviIdChanged();
58
59private:
60 void initialize() override;
61};
62
63QT_END_NAMESPACE
64
65#endif // QWAYLANDIVISURFACE_H
\qmltype IviSurface \nativetype QWaylandIviSurface \inqmlmodule QtWayland.Compositor....
\inmodule QtWaylandCompositor
Combined button and popup list for selecting options.