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
qwaylandxdgshellintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDXDGSHELLINTEGRATION_P_H
5#define QWAYLANDXDGSHELLINTEGRATION_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qwayland-xdg-shell.h"
19
20#include <QtWaylandClient/private/qwaylandshellintegration_p.h>
21
23
24namespace QtWaylandClient {
25
27
28class Q_WAYLANDCLIENT_EXPORT QWaylandXdgShellIntegration
29 : public QWaylandShellIntegrationTemplate<QWaylandXdgShellIntegration>,
30 public QtWayland::xdg_wm_base
31{
32public:
35 QWaylandShellSurface *createShellSurface(QWaylandWindow *window) override;
36 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
37 bool initialize(QWaylandDisplay *display) override;
38
39protected:
40 void xdg_wm_base_ping(uint32_t serial) override;
41
42private:
43 QWaylandDisplay *mDisplay;
44 QScopedPointer<QWaylandXdgShell> mXdgShell;
45};
46
47}
48
50
51#endif // QWAYLANDXDGSHELLINTEGRATION_P_H
\inmodule QtCore
Definition qbytearray.h:57
\qmltype XdgShell \instantiates QWaylandXdgShell \inqmlmodule QtWayland.Compositor....
\inmodule QtGui
Definition qwindow.h:63
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static bool initialize()
Definition qctf.cpp:94
aWidget window() -> setWindowTitle("New Window Title")
[2]