![]() |
libdisplaydevice latest
C++ library to modify display devices.
|
Higher level abstracted API for interacting Windows' display device(s). More...
#include <src/windows/include/display_device/windows/win_display_device_interface.h>
Public Member Functions | |
| virtual EnumeratedDeviceList | enumAvailableDevices () const =0 |
| Enumerate the available (active and inactive) devices. | |
| virtual DeviceDisplayModeMap | getCurrentDisplayModes (const std::set< std::string > &device_ids) const =0 |
| Get current display modes for the devices. | |
| virtual HdrStateMap | getCurrentHdrStates (const std::set< std::string > &device_ids) const =0 |
| Get HDR state for the devices. | |
| virtual ActiveTopology | getCurrentTopology () const =0 |
| Get the active (current) topology. | |
| virtual std::string | getDisplayName (const std::string &device_id) const =0 |
| Get display name associated with the device. | |
| virtual bool | isApiAccessAvailable () const =0 |
| Check if the API for changing display settings is accessible. | |
| virtual bool | isPrimary (const std::string &device_id) const =0 |
| Check whether the specified device is primary. | |
| virtual bool | isTopologyTheSame (const ActiveTopology &lhs, const ActiveTopology &rhs) const =0 |
| Check if the topologies are close enough to be considered the same by the OS. | |
| virtual bool | isTopologyValid (const ActiveTopology &topology) const =0 |
| Verify if the active topology is valid. | |
| virtual bool | setAsPrimary (const std::string &device_id)=0 |
| Set the device as a primary display. | |
| virtual bool | setDisplayModes (const DeviceDisplayModeMap &modes)=0 |
| Set new display modes for the devices. | |
| virtual bool | setHdrStates (const HdrStateMap &states)=0 |
| Set HDR states for the devices. | |
| virtual bool | setTopology (const ActiveTopology &new_topology)=0 |
| Set a new active topology for the OS. | |
| virtual | ~WinDisplayDeviceInterface ()=default |
| Default virtual destructor. | |
Higher level abstracted API for interacting Windows' display device(s).
|
nodiscardpure virtual |
Enumerate the available (active and inactive) devices.
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Get current display modes for the devices.
| device_ids | A list of devices to get the modes for. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Get HDR state for the devices.
| device_ids | A list of devices to get the HDR states for. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Get the active (current) topology.
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Get display name associated with the device.
| device_id | A device to get display name for. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Check if the API for changing display settings is accessible.
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Check whether the specified device is primary.
| device_id | A device to perform the check for. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Check if the topologies are close enough to be considered the same by the OS.
| lhs | First topology to compare. |
| rhs | Second topology to compare. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Verify if the active topology is valid.
This is mostly meant as a sanity check or to verify that it is still valid after a manual modification to an existing topology.
| topology | Topology to validate. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Set the device as a primary display.
| device_id | A device to set as primary. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Set new display modes for the devices.
| modes | A map of modes to set. |
*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Set HDR states for the devices.
| states | A map of HDR states to set. |
unknown states are provided, they will be silently ignored and current state will not be changed.*Examples**
Implemented in display_device::WinDisplayDevice.
|
nodiscardpure virtual |
Set a new active topology for the OS.
| new_topology | New device topology to set. |
*Examples**
Implemented in display_device::WinDisplayDevice.