Higher level abstracted API for interacting with macOS display devices.
More...
#include <src/macos/include/display_device/macos/mac_display_device_interface.h>
Higher level abstracted API for interacting with macOS display devices.
◆ enumAvailableDevices()
| virtual EnumeratedDeviceList display_device::MacDisplayDeviceInterface::enumAvailableDevices |
( |
| ) |
const |
|
nodiscardpure virtual |
Enumerate the available display devices.
- Returns
- A list of available devices. Empty list can also indicate an error.
Implemented in display_device::MacDisplayDevice.
◆ getCurrentDisplayModes()
Get current display modes for the devices.
- Parameters
-
| device_ids | Devices to get modes for. |
- Returns
- Display mode map, or an empty map if unavailable.
Implemented in display_device::MacDisplayDevice.
◆ getCurrentHdrStates()
| virtual MacHdrStateMap display_device::MacDisplayDeviceInterface::getCurrentHdrStates |
( |
const StringSet & | device_ids | ) |
const |
|
nodiscardpure virtual |
Get HDR state for the devices.
- Parameters
-
| device_ids | Devices to get HDR states for. |
- Returns
- HDR states per device, or an empty map if unavailable.
Implemented in display_device::MacDisplayDevice.
◆ getCurrentTopology()
| virtual MacActiveTopology display_device::MacDisplayDeviceInterface::getCurrentTopology |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ getDisplayName()
| virtual std::string display_device::MacDisplayDeviceInterface::getDisplayName |
( |
const std::string & | device_id | ) |
const |
|
nodiscardpure virtual |
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.
Implemented in display_device::MacDisplayDevice.
◆ isApiAccessAvailable()
| virtual bool display_device::MacDisplayDeviceInterface::isApiAccessAvailable |
( |
| ) |
const |
|
nodiscardpure virtual |
Check if the API for changing display settings is accessible.
- Returns
- True if display settings can be changed, false otherwise.
Implemented in display_device::MacDisplayDevice.
◆ isPrimary()
| virtual bool display_device::MacDisplayDeviceInterface::isPrimary |
( |
const std::string & | device_id | ) |
const |
|
nodiscardpure virtual |
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.
Implemented in display_device::MacDisplayDevice.
◆ 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.
Implemented in display_device::MacDisplayDevice.
◆ isTopologyValid()
| virtual bool display_device::MacDisplayDeviceInterface::isTopologyValid |
( |
const MacActiveTopology & | topology | ) |
const |
|
nodiscardpure virtual |
Verify if the active topology is valid.
- Parameters
-
| topology | Topology to validate. |
- Returns
- True if valid, false otherwise.
Implemented in display_device::MacDisplayDevice.
◆ setAsPrimary()
| virtual bool display_device::MacDisplayDeviceInterface::setAsPrimary |
( |
const std::string & | device_id | ) |
|
|
nodiscardpure virtual |
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.
Implemented in display_device::MacDisplayDevice.
◆ setDisplayModes()
◆ setHdrStates()
| virtual bool display_device::MacDisplayDeviceInterface::setHdrStates |
( |
const MacHdrStateMap & | states | ) |
|
|
nodiscardpure virtual |
Set HDR states for the devices.
- Parameters
-
- Returns
- True if HDR states were set or no changes were needed, false otherwise.
Implemented in display_device::MacDisplayDevice.
◆ setTopology()
| virtual bool display_device::MacDisplayDeviceInterface::setTopology |
( |
const MacActiveTopology & | new_topology | ) |
|
|
nodiscardpure virtual |
Set a new active topology.
- Parameters
-
| new_topology | New topology to set. |
- Returns
- True if the new topology has been set, false otherwise.
Implemented in display_device::MacDisplayDevice.
The documentation for this class was generated from the following file: