Louvre
v2.12.0-1
C++ library for Wayland compositors
|
Output resolution and refresh rate. More...
Public Member Functions | |
LOutput * | output () const noexcept |
Gets the output associated with this mode. More... | |
const LSize & | sizeB () const noexcept |
Gets the resolution of the mode. More... | |
UInt32 | refreshRate () const noexcept |
Gets the refresh rate of the mode. More... | |
bool | isPreferred () const noexcept |
Check if this mode is the preferred mode for the output. More... | |
void * | data () const noexcept |
Backend data handle. More... | |
Output resolution and refresh rate.
The LOutputMode class represents a possible configuration in which an LOutput can operate, specifically the refresh rate and resolution.
Each LOutput has one or more modes which can be accessed from LOutput::modes() and assigned with LOutput::setMode().
|
inlinenoexcept |
Gets the output associated with this mode.
This method retrieves the output to which the mode belongs.
|
inlinenoexcept |
Gets the resolution of the mode.
This method returns the dimensions of the output when using this mode, represented in buffer coordinates.
|
inlinenoexcept |
Gets the refresh rate of the mode.
This method returns the refresh rate of the mode in Hertz (Hz) multiplied by 1000.
|
inlinenoexcept |
Check if this mode is the preferred mode for the output.
This method indicates whether the mode is the preferred choice for the output.
true
if this mode is preferred and false
otherwise.
|
inlinenoexcept |
Backend data handle.