Default implementation for the MacDisplayDeviceInterface.
More...
#include <src/macos/include/display_device/macos/mac_display_device.h>
Default implementation for the MacDisplayDeviceInterface.
◆ MacDisplayDevice()
Default constructor for the class.
- Parameters
-
| m_api | A pointer to the macOS API layer. Will throw on nullptr. |
◆ enumAvailableDevices()
◆ getCurrentDisplayModes()
◆ getCurrentHdrStates()
◆ getCurrentTopology()
◆ getDisplayName()
| std::string display_device::MacDisplayDevice::getDisplayName |
( |
const std::string & | device_id | ) |
const |
|
nodiscardoverridevirtual |
Get the macOS capture selector associated with the device.
- Parameters
-
| device_id | A device to get display name for. |
- Returns
- Decimal CoreGraphics display id string, or an empty string if not found.
Implements display_device::MacDisplayDeviceInterface.
◆ isApiAccessAvailable()
| bool display_device::MacDisplayDevice::isApiAccessAvailable |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ isPrimary()
| bool display_device::MacDisplayDevice::isPrimary |
( |
const std::string & | device_id | ) |
const |
|
nodiscardoverridevirtual |
Check whether the specified device is primary.
- Parameters
-
| device_id | Device to perform the check for. |
- Returns
- True if the device is primary, false otherwise.
Implements display_device::MacDisplayDeviceInterface.
◆ isTopologyTheSame()
Check if the topologies are close enough to be considered the same by macOS.
- Parameters
-
| lhs | First topology to compare. |
| rhs | Second topology to compare. |
- Returns
- True if topologies are the same, false otherwise.
Implements display_device::MacDisplayDeviceInterface.
◆ isTopologyValid()
| bool display_device::MacDisplayDevice::isTopologyValid |
( |
const MacActiveTopology & | topology | ) |
const |
|
nodiscardoverridevirtual |
◆ setAsPrimary()
| bool display_device::MacDisplayDevice::setAsPrimary |
( |
const std::string & | device_id | ) |
|
|
nodiscardoverridevirtual |
Set the device as a primary display.
- Parameters
-
| device_id | Device to set as primary. |
- Returns
- True if the device is or was set as primary, false otherwise.
Implements display_device::MacDisplayDeviceInterface.
◆ setDisplayModes()
◆ setHdrStates()
| bool display_device::MacDisplayDevice::setHdrStates |
( |
const MacHdrStateMap & | states | ) |
|
|
nodiscardoverridevirtual |
◆ setTopology()
| bool display_device::MacDisplayDevice::setTopology |
( |
const MacActiveTopology & | new_topology | ) |
|
|
nodiscardoverridevirtual |
The documentation for this class was generated from the following files: