libdisplaydevice master
C++ library to modify display devices.
mac_api_utils.h File Reference

Declarations for lower level macOS API utility functions. More...

#include "types.h"
Include dependency graph for mac_api_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  display_device::mac_utils
 Shared utility-level code for macOS API wrappers.
 

Functions

bool display_device::mac_utils::fuzzyCompareModes (const MacDisplayMode &lhs, const MacDisplayMode &rhs)
 Check if two macOS display modes are close enough to be treated as equal.
 
bool display_device::mac_utils::fuzzyCompareRefreshRates (const Rational &lhs, const Rational &rhs)
 Check if two refresh rates are close enough to be treated as equal.
 
bool display_device::mac_utils::isSuccess (MacApiError error_code)
 Check if a macOS API error represents success.
 

Detailed Description

Declarations for lower level macOS API utility functions.