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
qwaylandoutputmode.cpp
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
6
23
26{
27 d->size = size;
28 d->refreshRate = refreshRate;
29}
30
33{
34 d->size = other.size();
35 d->refreshRate = other.refreshRate();
36}
37
42
44{
45 d->size = other.size();
46 d->refreshRate = other.refreshRate();
47 return *this;
48}
49
55{
56 return size() == other.size() && refreshRate() == other.refreshRate();
57}
58
64{
65 return size() != other.size() || refreshRate() != other.refreshRate();
66}
67
72{
73 return !d->size.isEmpty() && d->refreshRate > 0;
74}
75
80{
81 return d->size;
82}
83
88{
89 return d->refreshRate;
90}
91
95void QWaylandOutputMode::setSize(const QSize &size)
96{
97 d->size = size;
98}
\inmodule QtCore
Definition qsize.h:25
\inmodule QtWaylandCompositor
QWaylandOutputMode & operator=(const QWaylandOutputMode &other)
int refreshRate() const
Returns the refresh rate in mHz.
QSize size() const
Returns the resolution in pixels.
bool operator==(const QWaylandOutputMode &other) const
Returns true if this mode is equal to other, otherwise returns false.
bool isValid() const
Returns whether this mode contains a valid resolution and refresh rate.
bool operator!=(const QWaylandOutputMode &other) const
Returns true if this mode is not equal to other, otherwise returns false.
GLenum GLuint GLintptr GLsizeiptr size
[1]
QSharedPointer< T > other(t)
[5]