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
qwaylandqtsurface_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QWAYLANDQTSURFACE_H
5#define QWAYLANDQTSURFACE_H
6
7#include <QtCore/qpoint.h>
8#include <QtWaylandClient/private/qwaylandshellsurface_p.h>
9#include "qwayland-qt-shell-unstable-v1.h"
10
12
13namespace QtWaylandClient {
14
15class QWaylandWindow;
16class QWaylandInputDevice;
17
18class Q_WAYLANDCLIENT_EXPORT QWaylandQtSurface : public QWaylandShellSurface
20{
21public:
24
27 void setWindowSize(const QSize &size) override;
28
31 void setTitle(const QString &title) override;
32
36
38
40
41 void raise() override;
42 void lower() override;
43
44 std::any surfaceRole() const override { return object(); };
45
46private:
47 void resetConfiguration();
48 void sendSizeHints();
57
59 QPoint m_pendingPosition = { -1, -1 };
60 bool m_pendingPositionValid = false;
66};
67
68}
69
70QT_END_NAMESPACE
71
72#endif // QWAYLANDQTSURFACE_H