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

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

#include "display_device/macos/mac_api_utils.h"
#include <cmath>
Include dependency graph for mac_api_utils.cpp:

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

Definitions for lower level macOS API utility functions.