![]() |
libdisplaydevice latest
C++ library to modify display devices.
|
Configuration centered around a single display. More...
#include <src/common/include/display_device/types.h>
Public Types | |
| enum class | DevicePreparation { VerifyOnly , EnsureActive , EnsurePrimary , EnsureOnlyDisplay } |
| Enum detailing how to prepare the display device. More... | |
Public Attributes | |
| std::string | m_device_id {} |
| DevicePreparation | m_device_prep {} |
| std::optional< HdrState > | m_hdr_state {} |
| std::optional< FloatingPoint > | m_refresh_rate {} |
| std::optional< Resolution > | m_resolution {} |
Friends | |
| bool | operator== (const SingleDisplayConfiguration &lhs, const SingleDisplayConfiguration &rhs) |
| Comparator for strict equality. | |
Configuration centered around a single display.
Allows to easily configure the display without providing a complete configuration for all of the system display devices.
|
strong |
Enum detailing how to prepare the display device.
| std::string display_device::SingleDisplayConfiguration::m_device_id {} |
Device to perform configuration for (can be empty if primary device should be used).
| DevicePreparation display_device::SingleDisplayConfiguration::m_device_prep {} |
Instruction on how to prepare device.
| std::optional<HdrState> display_device::SingleDisplayConfiguration::m_hdr_state {} |
HDR state to configure (if supported by the display).
| std::optional<FloatingPoint> display_device::SingleDisplayConfiguration::m_refresh_rate {} |
Refresh rate to configure.
| std::optional<Resolution> display_device::SingleDisplayConfiguration::m_resolution {} |
Resolution to configure.