![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtWaylandCompositor More...
#include <qwaylandoutputmode.h>
Public Member Functions | |
QWaylandOutputMode () | |
QWaylandOutputMode (const QSize &size, int refreshRate) | |
QWaylandOutputMode (const QWaylandOutputMode &other) | |
~QWaylandOutputMode () | |
QWaylandOutputMode & | operator= (const QWaylandOutputMode &other) |
bool | operator== (const QWaylandOutputMode &other) const |
Returns true if this mode is equal to other, otherwise returns false . | |
bool | operator!= (const QWaylandOutputMode &other) const |
Returns true if this mode is not equal to other, otherwise returns false . | |
bool | isValid () const |
Returns whether this mode contains a valid resolution and refresh rate. | |
QSize | size () const |
Returns the resolution in pixels. | |
int | refreshRate () const |
Returns the refresh rate in mHz. | |
Friends | |
class | QWaylandOutputPrivate |
\inmodule QtWaylandCompositor
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.
Definition at line 12 of file qwaylandoutputmode.h.
|
explicit |
Definition at line 19 of file qwaylandoutputmode.cpp.
QWaylandOutputMode::QWaylandOutputMode | ( | const QSize & | size, |
int | refreshRate | ||
) |
Definition at line 24 of file qwaylandoutputmode.cpp.
References refreshRate(), QWaylandOutputModePrivate::refreshRate, size(), and QWaylandOutputModePrivate::size.
QWaylandOutputMode::QWaylandOutputMode | ( | const QWaylandOutputMode & | other | ) |
Definition at line 31 of file qwaylandoutputmode.cpp.
References other(), QWaylandOutputModePrivate::refreshRate, and QWaylandOutputModePrivate::size.
QWaylandOutputMode::~QWaylandOutputMode | ( | ) |
Definition at line 38 of file qwaylandoutputmode.cpp.
bool QWaylandOutputMode::isValid | ( | ) | const |
Returns whether this mode contains a valid resolution and refresh rate.
Definition at line 71 of file qwaylandoutputmode.cpp.
References QSize::isEmpty(), QWaylandOutputModePrivate::refreshRate, and QWaylandOutputModePrivate::size.
bool QWaylandOutputMode::operator!= | ( | const QWaylandOutputMode & | other | ) | const |
Returns true
if this mode is not equal to other, otherwise returns false
.
Definition at line 63 of file qwaylandoutputmode.cpp.
References other(), refreshRate(), and size().
QWaylandOutputMode & QWaylandOutputMode::operator= | ( | const QWaylandOutputMode & | other | ) |
Definition at line 43 of file qwaylandoutputmode.cpp.
References other(), QWaylandOutputModePrivate::refreshRate, and QWaylandOutputModePrivate::size.
bool QWaylandOutputMode::operator== | ( | const QWaylandOutputMode & | other | ) | const |
Returns true
if this mode is equal to other, otherwise returns false
.
Definition at line 54 of file qwaylandoutputmode.cpp.
References other(), refreshRate(), and size().
int QWaylandOutputMode::refreshRate | ( | ) | const |
Returns the refresh rate in mHz.
Definition at line 87 of file qwaylandoutputmode.cpp.
References QWaylandOutputModePrivate::refreshRate.
Referenced by QWaylandOutputMode(), operator!=(), and operator==().
QSize QWaylandOutputMode::size | ( | ) | const |
Returns the resolution in pixels.
Definition at line 79 of file qwaylandoutputmode.cpp.
References QWaylandOutputModePrivate::size.
Referenced by QWaylandOutputMode(), operator!=(), and operator==().
|
friend |
Definition at line 31 of file qwaylandoutputmode.h.