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
qwaylandoutputmode.h
Go to the documentation of this file.
1// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDOUTPUTMODE_H
6#define QWAYLANDOUTPUTMODE_H
7
8#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
9#include <QtCore/QSize>
10
12
14{
15public:
16 explicit QWaylandOutputMode();
17 QWaylandOutputMode(const QSize &size, int refreshRate);
18 QWaylandOutputMode(const QWaylandOutputMode &other);
19 ~QWaylandOutputMode();
20
21 QWaylandOutputMode &operator=(const QWaylandOutputMode &other);
22 bool operator==(const QWaylandOutputMode &other) const;
23 bool operator!=(const QWaylandOutputMode &other) const;
24
25 bool isValid() const;
26
27 QSize size() const;
28 int refreshRate() const;
29
30private:
31 class QWaylandOutputModePrivate *const d;
32 friend class QWaylandOutputPrivate;
33
34 void setSize(const QSize &size);
35};
36Q_DECLARE_TYPEINFO(QWaylandOutputMode, Q_MOVABLE_TYPE);
37
38QT_END_NAMESPACE
39
40#endif // QWAYLANDOUTPUTMODE_H
\inmodule QtWaylandCompositor
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)