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 Class Reference

\inmodule QtWaylandCompositor More...

#include <qwaylandoutputmode.h>

+ Collaboration diagram for QWaylandOutputMode:

Public Member Functions

 QWaylandOutputMode ()
 
 QWaylandOutputMode (const QSize &size, int refreshRate)
 
 QWaylandOutputMode (const QWaylandOutputMode &other)
 
 ~QWaylandOutputMode ()
 
QWaylandOutputModeoperator= (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
 

Detailed Description

\inmodule QtWaylandCompositor

Since
5.8

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.

See also
QWaylandOutput

Definition at line 12 of file qwaylandoutputmode.h.

Constructor & Destructor Documentation

◆ QWaylandOutputMode() [1/3]

QWaylandOutputMode::QWaylandOutputMode ( )
explicit

Definition at line 19 of file qwaylandoutputmode.cpp.

◆ QWaylandOutputMode() [2/3]

QWaylandOutputMode::QWaylandOutputMode ( const QSize & size,
int refreshRate )

Definition at line 24 of file qwaylandoutputmode.cpp.

References refreshRate(), and size().

+ Here is the call graph for this function:

◆ QWaylandOutputMode() [3/3]

QWaylandOutputMode::QWaylandOutputMode ( const QWaylandOutputMode & other)

Definition at line 31 of file qwaylandoutputmode.cpp.

References other().

+ Here is the call graph for this function:

◆ ~QWaylandOutputMode()

QWaylandOutputMode::~QWaylandOutputMode ( )

Definition at line 38 of file qwaylandoutputmode.cpp.

Member Function Documentation

◆ isValid()

bool QWaylandOutputMode::isValid ( ) const

Returns whether this mode contains a valid resolution and refresh rate.

Definition at line 71 of file qwaylandoutputmode.cpp.

◆ operator!=()

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().

+ Here is the call graph for this function:

◆ operator=()

QWaylandOutputMode & QWaylandOutputMode::operator= ( const QWaylandOutputMode & other)

Definition at line 43 of file qwaylandoutputmode.cpp.

References other().

+ Here is the call graph for this function:

◆ operator==()

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().

+ Here is the call graph for this function:

◆ refreshRate()

int QWaylandOutputMode::refreshRate ( ) const

Returns the refresh rate in mHz.

Definition at line 87 of file qwaylandoutputmode.cpp.

Referenced by QWaylandOutputMode(), operator!=(), and operator==().

+ Here is the caller graph for this function:

◆ size()

QSize QWaylandOutputMode::size ( ) const

Returns the resolution in pixels.

Definition at line 79 of file qwaylandoutputmode.cpp.

Referenced by QWaylandOutputMode(), operator!=(), and operator==().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QWaylandOutputPrivate

friend class QWaylandOutputPrivate
friend

Definition at line 31 of file qwaylandoutputmode.h.


The documentation for this class was generated from the following files: