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// Qt-Security score:critical reason:network-protocol
4
5#ifndef QWAYLANDQTSURFACE_H
6#define QWAYLANDQTSURFACE_H
7
8#include <QtCore/qpoint.h>
9#include <QtWaylandClient/private/qwaylandshellsurface_p.h>
10#include "qwayland-qt-shell-unstable-v1.h"
11
13
14namespace QtWaylandClient {
15
16class QWaylandWindow;
17class QWaylandInputDevice;
18
19class Q_WAYLANDCLIENT_EXPORT QWaylandQtSurface : public QWaylandShellSurface
21{
22public:
25
28 void setWindowSize(const QSize &size) override;
29
32 void setTitle(const QString &title) override;
33
37
39
41
42 void raise() override;
43 void lower() override;
44
45 std::any surfaceRole() const override { return object(); };
46
47private:
48 void resetConfiguration();
49 void sendSizeHints();
58
60 QPoint m_pendingPosition = { -1, -1 };
61 bool m_pendingPositionValid = false;
67};
68
69}
70
71QT_END_NAMESPACE
72
73#endif // QWAYLANDQTSURFACE_H
Combined button and popup list for selecting options.