Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwaylandsurface_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QWAYLANDSURFACE_P_H
5#define QWAYLANDSURFACE_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 <QtGui/QScreen>
19
20#include <QtWaylandClient/private/qwayland-wayland.h>
21#include <QtCore/private/qglobal_p.h>
22
24
25namespace QtWaylandClient {
26
27class QWaylandScreen;
28class QWaylandWindow;
29class QWaylandDisplay;
30
31class QWaylandSurface : public QObject, public QtWayland::wl_surface
32{
34public:
36 ~QWaylandSurface() override;
39
40 static QWaylandSurface *fromWlSurface(::wl_surface *surface);
41
44
45private slots:
46 void handleScreenRemoved(QScreen *qScreen);
47
48protected:
49 void surface_enter(struct ::wl_output *output) override;
50 void surface_leave(struct ::wl_output *output) override;
51
52 QList<QWaylandScreen *> m_screens; //As seen by wl_surface.enter/leave events. Chronological order.
54
55 friend class QWaylandWindow; // TODO: shouldn't need to be friends
56};
57
58} // namespace QtWaylandClient
59
61
62#endif // QWAYLANDSURFACE_P_H
Definition qlist.h:74
\inmodule QtCore
Definition qobject.h:90
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
QList< QWaylandScreen * > m_screens
void surface_enter(struct ::wl_output *output) override
void surface_leave(struct ::wl_output *output) override
static QWaylandSurface * fromWlSurface(::wl_surface *surface)
QWaylandWindow * waylandWindow() const
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
#define Q_OBJECT
#define slots
#define signals
QT_BEGIN_NAMESPACE typedef uchar * output