Type Alias

CGDirectDisplayID

A unique identifier for an attached display.

Declaration

typealias CGDirectDisplayID = UInt32

Discussion

In Quartz, the term display refers to a graphics hardware system consisting of a framebuffer, a color correction (gamma) table, and possibly an attached monitor. If no monitor is attached, a display is characterized as offline.

When a monitor is attached, Quartz assigns a unique display identifier (ID). A display ID can persist across processes and typically remains constant until the machine is restarted.

When assigning a display ID, Quartz considers the following parameters:

  • Vendor

  • Model

  • Serial number

  • Position in the I/O Kit registry

For information about how to obtain a display ID, see Finding Displays.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software