Contents

CGShieldingWindowID(_:)

Returns the window ID of the shield window for a captured display.

Declaration

func CGShieldingWindowID(_ display: CGDirectDisplayID) -> CGWindowID

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

The window ID of the shield window for the specified display, or NULL if the display is not shielded.

Discussion

To prevent updates by direct-to-screen programs, Quartz draws a shield window that fills the entire screen of a captured display.

This function is not recommended for use in applications. Note that the graphics context associated with this window is not a full-featured drawing context. To get a full-featured drawing context for a captured display, you should use the function CGDisplayGetDrawingContext(_:).

See Also

Functions