QWaylandOutputMode Class
The QWaylandOutputMode class holds the resolution and refresh rate of an output. 更多...
头文件: | #include <QWaylandOutputMode> |
qmake: | QT += waylandcompositor |
开始支持版本: | Qt 5.8 |
公有函数
QWaylandOutputMode() | |
QWaylandOutputMode(const QSize &size, int refreshRate) | |
QWaylandOutputMode(const QWaylandOutputMode &other) | |
~QWaylandOutputMode() | |
bool | isValid() const |
int | refreshRate() const |
QSize | size() const |
bool | operator!=(const QWaylandOutputMode &other) const |
QWaylandOutputMode & | operator=(const QWaylandOutputMode &other) |
bool | operator==(const QWaylandOutputMode &other) const |
详细描述
The QWaylandOutputMode class holds the resolution and refresh rate of an output.
QWaylandOutputMode holds the resolution and refresh rate of an output. Resolution is expressed in pixels and refresh rate is measured in mHz.
参见 QWaylandOutput.
成员函数
QWaylandOutputMode::QWaylandOutputMode()
Default constructs an instance of QWaylandOutputMode.
QWaylandOutputMode::QWaylandOutputMode(const QSize &size, int refreshRate)
Default constructs an instance of QWaylandOutputMode.
QWaylandOutputMode::QWaylandOutputMode(const QWaylandOutputMode &other)
Copy constructor.
QWaylandOutputMode::~QWaylandOutputMode()
Destroys the instance of QWaylandOutputMode.
bool QWaylandOutputMode::isValid() const
Returns whether this mode contains a valid resolution and refresh rate.
int QWaylandOutputMode::refreshRate() const
Returns the refresh rate in mHz.
QSize QWaylandOutputMode::size() const
Returns the resolution in pixels.
bool QWaylandOutputMode::operator!=(const QWaylandOutputMode &other) const
Returns true
if this mode is not equal to other, otherwise returns false
.
QWaylandOutputMode &QWaylandOutputMode::operator=(const QWaylandOutputMode &other)
Copy-assignment operator.
bool QWaylandOutputMode::operator==(const QWaylandOutputMode &other) const
Returns true
if this mode is equal to other, otherwise returns false
.